Skip to main content
Version: 20 R7 BETA

LISTBOX Get number of columns

LISTBOX Get number of columns ( {* ;} object ) -> Function result

ParameterTypeDescription
*OperatorIf specified, object is an object name (string) If omitted, object is a variable
objectanyObject name (if * is specified) or Variable (if * is omitted)
Function resultLongintNumber of columns

This command is not thread-safe, it cannot be used in preemptive code.

Description

The LISTBOX Get number of columns command returns the total number of columns (visible or invisible) present in the list box set in the object and * parameters.

If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a variable. In this case, you pass a variable reference instead of a string. For more information on object names, refer to the Object Properties section.

See also

LISTBOX DELETE COLUMN