Skip to main content
Version: Next

LISTBOX Get column width

LISTBOX Get column width ( {* ;} object {; minWidth {; maxWidth}} ) -> Function result

ParameterTypeDescription
*Operator🡒If specified, object is an object name (string) If omitted, object is a variable
objectForm object🡒Object name (if * is specified) or Variable (if * is omitted)
minWidthLongint🡘Minimum column width (in pixels)
maxWidthLongint🡘Maximum column width (in pixels)
Function resultLongint🡐Column width (in pixels)

Description

The LISTBOX Get column width command returns the width (in pixels) of the column set in the object and * parameters. You can pass either a list box column or a column header in the object parameter.

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.

LISTBOX Get column width can return the resizing limits of the column in the minWidth and maxWidth parameters. These limits can be specified via the LISTBOX SET COLUMN WIDTH command.
If no minimum and/or maximum value has been set for the column, the corresponding parameter returns 0.

See also

LISTBOX SET COLUMN WIDTH