Advanced PowerBuilder Referencing Window Variables Directly
Instance variables are declared at the object level and are considered as the attributes of the appropriate object. You can therefore refer an instance variable as any other attribute of an object.
// Standard window attribute
w_product_master.visible = TRUE
// Instance variable attribute
// w_product_master.InstanceVarName = FALSE |
Instance variables can be declared with different access levels (We will be learning that in later sessions). To refer an instance variable from another object, it must be declared as Public access. This is the default access level, so worry about it only if you change the access level. It is a good idea to restrict access to these instance variables by providing methods which act on them and allow other objects to access them through these methods only.
|