Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=desga2] Sorry disrupted but I think that your code could be more simple (more easy to read) if you change this repeated sections: [code] if $findmacro=("") then GUICtrlSetData($desc,"can't uninstall: malformed ini, please reinstall this extension or contact the author") FileDelete($inipath) elseif $findmacro=("\") then GUICtrlSetData($desc,"can't uninstall: malformed ini, please reinstall this extension or contact the author") FileDelete($inipath) else [/code] By something like this: [code] if $findmacro=("") OR $findmacro=("\") then IniError() else func IniError() GUICtrlSetData($desc,"can't uninstall: malformed ini, please reinstall this extension or contact the author") FileDelete($inipath) endfunc [/code] If you repeat some code in a lot of lines is better convert it in a function.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development