Top
PowerCOBOL V11.0 Reference
FUJITSU Software

1.3.4 Naming Attributes

In earlier versions of PowerCOBOL, attributes used PowerCOBOL-specific names like "POW-TEXT". Because they were specific to PowerCOBOL, the designers could ensure that there was no conflict with COBOL reserved words. Attributes (or properties) were referred to using syntax of the style:

MOVE value TO POW-attribute-name OF control-name

However, with the introduction of support for ActiveX controls that can be created outside the COBOL "world", there is now no way to ensure there is no conflict with COBOL reserved words. PowerCOBOL therefore uses the following style of syntax for referring to properties:

MOVE value TO "property-name" OF control-name

where the property is enclosed in quotes.

Check each control for the new property names that have replaced the "POW-XXXX" style names. A few of the most common attribute names are listed below with their new property name.

Attribute Name

Property Name (4.0 onward)

POW-BACKCOLOR

"BackColor"

POW-FONTSIZE

"Size" OF "Font"

POW-ITALIC

"Italic" OF "Font"

POW-TEXT

"Caption "