The number of columns in the DataWindow object.
DataWindows
PowerBuilder dot notation:
dw_control.Object.DataWindow.Column.Count
Describe argument:
"DataWindow.Column.Count"
The value is determined by the number of columns you select in the SQL Select painter, whether or not they are displayed.
string ls_colcount
ls_colcount = dw1.Object.DataWindow.Column.Count
ls_colcount = dw1.Describe("DataWindow.Column.Count")