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