1.shared variable
A variable that belongs to an object definition and exists across all instances of the object. Shared variables retain their value when an object is closed and opened again. Shared variables are always private. They are accessible only in scripts for the object and for controls associated with the object. Shared variables can belong to the Application object, a window, a user object, or a menu.
2.instance variable
A variable that belongs to an object and is associated with an instance of that object (you can think of it as a property of the object). Instance variables have access keywords that determine whether scripts of other objects can access them. Instance variables can belong to the application, a window, a user object, or a menu.
3.global function
A user-defined function that is not associated with any object in the application and is always accessible anywhere in the application. Global functions correspond to the PowerBuilder built-in functions that are not associated with an object, such as the mathematical and string-handling functions.
4.local variable
A temporary variable that is accessible only in the script in which you define it. When the script is finished, the variable ceases to exist.