Arma 3 Scripting

lbCurSel

  • Arma 3 v0.50
  • First in Operation Flashpoint v1.75

Command · Markdown · JSON · original wiki page

Description

Returns the index of the selected item of the CT_LISTBOX, CT_LISTNBOX, CT_COMBO or CT_TOOLBOX. For CT_LISTBOX with multi selection enabled use lbSelection.

Syntax

Syntax 1

lbCurSel idc

Parameters:

Returns: Number - selected index (row) or -1 if nothing is selected

Syntax 2

lbCurSel control

Parameters:

Returns: Number - selected index (row) or -1 if nothing is selected

Examples

Example 1

_index = lbCurSel 101;

Example 2

lbCurSel _ctrl;

See also

lbIsSelected · lbSelection · lbSetCurSel

Community notes

ffur2007slx2_5

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