Arma 3 Scripting

Command in GUI Control - ListBox

lbSize

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the number of items in a CT_LISTBOX or CT_COMBO control. For CT_TOOLBOX size see lnbSize.

Syntax

Syntax 1

lbSize idc

Parameters:

Returns: Number

Syntax 2

lbSize control

Parameters:

Returns: Number

Examples

Example 1

_size = lbSize 101;

Example 2

_size = lbSize _control;

See also

lbAdd · lbClear · lbColor · lbCurSel · lbData · lbDelete · lbIsSelected · lbPicture · lbSelection · lbSetColor · lbSetCurSel · lbSetData · lbSetPicture · lbSetSelected · lbSetTooltip · lbSetValue · lbSort · lbSortByValue · lbText · lbValue

Community notes

Ffur2007slx2_5

More information on the CT_LISTBOX command family can be found here.