ListColumnCount(listboxName As String) As Integer

 

Gets the number of columns of listbox listboxName .

 

 

Parameters :

 

Name

Type

Value

Description

listboxName

String

name

ScreenFieldName of the listbox to get the number of columns.

Ctrl+Click onto a listbox to retrieve its listboxName

(= ScreenFieldName)

 

Returns :

 

Type

Value

Description

Integer

0 - n

The number of columns the ListBox listboxName contains. ColumnCount is 1-based. The maximum number of visible columns is 64

 

Available in:

 

WindowMain

WindowLink

YES

YES

 

 

Hint : You can find references to XojoScripts which make use of this function by sending the following SQL statement to the database :

Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%ListColumnCount%'

 

Example XojoScript:

 

Dim NumCols As Integer = ListColumnCount ("imLB_evt_List3" )

MsgBox ("Number of columns: " + Str(NumCols))