Advanced PowerBuilder

HomePrevious Lesson: Opening Window with a Parameter
Next Lesson: The Message Object

Structures

Structures are basically collections of variables/objects that are defined in the structure painter. If you know 'C' language, then think it as a structure in 'C' and if you are from 'COBOL' background, then think it as a record with no sub-levels.

To declare a structure, invoke the structure painter by selecting File > New menu option and double clicking on the icon and define the variable/object name and the datatype. The object can also be another PowerBuilder structure. When you save a structure, it becomes a PowerBuilder object.

In functions like OpenWithParm(), you can pass only one parameter. Sometimes you may need to pass more than one parameter. If that is the case, use Structures. When you pass the Structure as the parameter, the opened object can access all members in the structure.
HomePrevious Lesson: Opening Window with a Parameter
Next Lesson: The Message Object