Arma 3 Scripting

Command in GUI Control - ListBox

lbSetData

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

Description

Sets the additional text (invisible) in the item with the given index of the listbox or combobox with id idc of the topmost user dialog to the given data.

Note

See more information on the CT_LISTBOX command family here.

Syntax

Syntax 1

lbSetData [idc, index, data]

Parameters:

Returns: Nothing

Syntax 2

control lbSetData [index, data]

Parameters:

Returns: Nothing

Examples

Example 1

lbSetData [101, 1, "#1"];

Example 2

_control lbSetData [1, "#1"];

See also

lbData · lbDelete · lbSetValue · lbValue