Description
Finds the number of columns in a ListView control.
Applies to
ListView controls
Syntax
listviewname.TotalColumns ( )
Argument |
Description |
---|---|
listviewname |
The name of the ListView control for which you want to find the number of columns |
Return value
Integer.
Returns the number of columns if it succeeds and -1 if an error occurs.
Usage
Use when the ListView control is set to report view.
Examples
This example displays the number of columns in a ListView report view in a SingleLineEdit:
int li_cols li_cols = lv_list.TotalColumns() sle_info.text = "Total columns = " + string(li_cols)
See also