Action
Returns the number of columns in the list or in the listview in
Details view.
Availability
This functionality is supported only if you are using the Classic Agent.
Syntax
iCount = list.GetColumnCount()
Variable
|
Description
|
iCount
|
The number of columns.
INTEGER.
|
Notes
- GetColumnCount returns the number of columns that a listview control has in
Details view. An exception is raised if this function is called for a listview that is not in
Details view.
- The
GetColumnCount method is not available in the
ListViewEx class, which is the equivalent of the
ListView class on the Open Agent. To achieve the same functionality on the Open Agent, use the
ColumnCount property of the
ListViewEx class.
Example
Verify(MyDialog.MyListView.GetColumnCount(),4)