Arma 3 Scripting

Command in GUI Control - Controls Table

ctCurSel

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

Description

Returns index of the selected row. Will take only rows, but not headers into account.

Syntax

ctCurSel ctrl

Parameters:

Returns: Number

Examples

Example 1

_curSel = ctCurSel _control;

See also

ctAddRow · ctAddHeader · ctClear · ctSetCurSel · ctRowControls · ctHeaderControls · ctRowCount · ctHeaderCount · ctSetValue · ctValue · ctSetData · ctData · ctFindRowHeader · ctFindHeaderRows · ctRemoveRows · ctRemoveHeaders · ctSetRowTemplate · ctSetHeaderTemplate