{"name":"lbSelection","title":"lbSelection","type":"command","url":"https://community.bistudio.com/wiki/lbSelection","revid":379363,"updated":"2026-10-30T23:56:32Z","groups":["GUI Control - ListBox"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Returns Array of selected rows indices in the given listbox. If listbox is of style LB_MULTI (multi-selection) the array will contain multiple elements, otherwise only a single element. For single selection listbox one can also use lbCurSel. See also lbIsSelected, lbSetSelected","syntaxes":[{"syntax":"lbSelection control","params":[{"name":"control","type":"Control","type_expr":"Control"}],"returns":{"type":"Array of Numbers","type_expr":"Array<Number>"},"form":"unary","right":{"text":"control"}}],"examples":[{"code":["_indices = lbSelection _control;"]}],"see_also":["lbAdd","lbClear","lbColor","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbSetColor","lbSetCurSel","lbSetData","lbSetPicture","lbSetSelected","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortByValue","lbText","lbValue"],"notes":[{"user":"Dscha","date":"2020-04-24T11:39:00Z","text":"With the addition of **RscListBoxMulti** (in Arma 3 - 1.98), it is possible to get all the selected Rows with lbSelection."}]}