Finds the number of columns in a ListView control.
ListView controls
listviewname.TotalColumns ( )
Argument  | 
Description  | 
|---|---|
listviewname  | 
The name of the ListView control for which you want to find the number of columns  | 
Integer. Returns the number of columns if it succeeds and -1 if an error occurs.
Use when the ListView control is set to report view.
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)