Advanced PowerBuilder Global Variables
Did you know that we used few global variables till now and that too without even declaring them. They are SQLCA and ERROR object. These two are built-in global variables. You can declare global variables by selecting 'Declare' option from the left DDLB in the script painter and selecting 'Global Variables' option from the second DDLB.
Global variables can be referred from anywhere in the application. They become available when the application is opened and are destroyed when the application is closed. Use Global variables only when absolutely necessary and take care while naming them.
|