THEN Also use a tab to indent statements continued onto a new line. Statements should be continued onto a new line rather than scrolling off the display area of the script painter. This promotes readability and ensures that the entire script will appear when printed. PowerScript statement keywords are in upper case Variable declarations - All local variable declarations for a script are placed at the beginning of the script. Variables should be declared at the narrowest level of scoping possible.
Local variables have the narrowest scope, followed by instance, shared, and global variables.
Global variables have the broadest scope and should only be used for variables that truly need to exist for the entire application. This promotes code reusability. The PowerBuilder repository should be used to provide comments for all tables and columns used in an application. Object comments should be supplied for each object in a PowerBuilder library. Comments may also be used in the body of the script to explain individual sections or lines of code.