Basic structure of DataWindows and property expressions in PowerBuilder

Controls in a DataWindow

A DataWindow object is made up of many controls (such as Columns, Text, Pictures, and Reports). In PowerBuilder scripts, the datatype of these controls is DWObject. Each DWObject has a set of properties according to its type. The syntax of a property expression allows you to address any of these properties.

Object property

A DataWindow property expression uses the Object property of the DataWindow control to access the DataWindow object. Following the Object property, you specify a control name and one or more properties.

The simple syntax is:

dwcontrol.Object.dwcontrolname.property

For example:

dw_1.Object.empname.Resizeable

For the full syntax, see “PowerBuilder syntax for DataWindow property expressions”.

NoteAbout DataWindow data expressions Expressions that access data in a DataWindow object using dot notation use the Object and Data properties. These expressions are called data expressions (in contrast to property expressions); because of the intricate syntax for data expressions, they are described separately, in Chapter 4, “Accessing Data in Code.”