What is SmartScripter?SmartScripter is a tool to streamline your PowerScript. It can help you to establish a common style within your own projects and throughout your whole company. In order to achieve this goal, it parses your PowerScript and changes the case of the elements accordingly. For instance, depending on your settings, SmartScripter changes the following: if THIS.of_issmartscripterenabled( ) Then MESSAGEBOX( getapplication( ).Title, is_NEWmsg) END If into the corrected version: IF this.of_IsSmartScripterEnabled() THEN Messagebox(GetApplication().title, is_newMsg) END IF This is how it works: 1. start SmartScripter by pressing the hotkey or clicking on the process button. 2. SmartScripter examines the content of the current PowerBuilder script window. It identifies · Variables · Methods · Datatypes · Reserved Words · Comments · String Literals 3.
SmartScripter has a list of all variables, methods and
datatypes. It looks them up in its dictionaries. If it finds them, it changes
the case accordingly, if it doesn’t find it, it presents
those words to the user who changes upper and lowercase of the letters and
presses ok. The new words are included in the SmartScripter dictionaries, so the
user only has to do this once. 4. SmartScripter puts the changed PowerScript back into the PowerBuilder script painter.
|