Arma 3 Scripting

Command in GUI Control - ListBox

lbText

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

Description

Returns the shown text of the item with the given index of the CT_LISTBOX or CT_COMBO.

Syntax

Syntax 1

lbText [idc, index]

Parameters:

Returns: String

Syntax 2

control lbText index

Parameters:

Returns: String

Examples

Example 1

_text = lbText [101, 0];

Example 2

_text = _control lbText 0;

See also

lbAdd · lbSetText