Description
Use this command to get the number of columns in a list view user control.
Functional area
User Window
Command syntax
Syntax
getNumListViewColumns userControlID |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
userControlID | integer | yes | ID of the list view to operate on |
Flags
None
Return value
integer
Returns the number of columns in the list view
Examples
// Get the number of columns in a list view we created earlier
int $listViewID = `getGlobalIntVar "ListViewID"`;
print( `getNumListViewColumns $listViewID` );