Top
PowerCOBOL V11.0 User's Guide
FUJITSU Software

9.7.1 Accessing Objects using PowerCOBOL Syntax

Objects can be accessed using the PowerCOBOL syntax - as described in the PowerCOBOL Reference. The format is similar to accessing controls except that the object is always qualified by the control of which it is a part.

Objects are either referenced directly or, when there can be several occurrences of the object within a control, through a property that is an array of pointers to the objects.

For example to set the Text property of the fourth ListItem object in the Listview1 control you would code:

MOVE "This is the fourth item" TO "Text" OF "ListItems" (4) OF Listview1

This format is convenient for simple applications and uses, but in some situations it is more convenient to use object references rather than the object name or pointer arrays. Using object references is described in the following sections.