GetColumnCount Method (LISTVIEW)


PLBCMP GUI Only

 

The GetColumnCount method retrieves the number of columns defined in a LISTVIEW object. The method uses the following format:

 

[label]

{object}.GetColumnCount

[GIVING {return}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. A LISTVIEW object that is accessed.

return

Optional. A Numeric Variable that returns the column count.

Flags Affected: OVER, ZERO

Note the following:

  1. The number of columns includes normal user data columns and the special columns for background color, foreground color, and attributes.

  2. The ZERO flag is set when the {return} value is zero.

  3. The OVER flag is set if the value returned is too big to be stored into the {return} variable.

 

 

See Also: Method Syntax, LISTVIEW Methods



PL/B Language Reference GetColResizeFlag (LISTVIEW) GetColumnFormat Method (LISTVIEW)