Skip to main content
Version: Next

LISTBOX Get row height

LISTBOX Get row height ( {* ;} object ; row ) -> 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)
rowLongint🡒List box row whose height you want to get
Function resultInteger🡐Row height

Description

The LISTBOX Get row height command returns the current height of the specified row in the list box object designated using the object and * parameters. Row height can be set globally using the Property List or the LISTBOX SET ROWS HEIGHT command, or individually by means of the LISTBOX SET ROW HEIGHT command.

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 the specified row does not exist in the list box, the command returns 0 (zero).

The returned height value is expressed:

  • in the current unit defined globally for the list box rows either in the Property list or by a prior call to the LISTBOX SET ROWS HEIGHT command when the row height is fixed,
  • in pixels when the row height is variable, i.e. set to automatic (see Automatic Row Height) or handled by an array.

See also

LISTBOX Get auto row height
LISTBOX Get rows height
LISTBOX SET ROW HEIGHT