Skip to main content
Version: 20 R7 BETA

LISTBOX DELETE COLUMN

LISTBOX DELETE COLUMN ( {* ;} object ; colPosition {; number} )

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)
colPositionIntegerColumn number to remove
numberIntegerNumber of columns to be removed

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

Description

The LISTBOX DELETE COLUMN command removes one or more columns (visible or invisible) in the list box set in the object and * parameters.

Note: This command does nothing if it is applied to the first column of a list box displayed in hierarchical mode.

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 about object names, refer to the Object Properties section.

If you do not pass the optional number parameter, the command simply removes the column set in the colPosition parameter.

Otherwise, the number parameter indicates the number of columns to remove to the right starting from the column colPosition (this one included).

If the colPosition parameter is greater than the number of columns in the list box, the command does nothing.

See also

LISTBOX Get number of columns
LISTBOX INSERT COLUMN