{"name":"lbCurSel","title":"lbCurSel","type":"command","url":"https://community.bistudio.com/wiki/lbCurSel","revid":379432,"updated":"2026-10-31T00:05:45Z","groups":["GUI Control - ListBox"],"status":"ok","games":{"ofp":"1.75","ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofp 1.75","arma3_since":"0.50","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.","syntaxes":[{"syntax":"lbCurSel idc","params":[{"name":"idc","type":"Number","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number","description":"selected index (row) or -1 if nothing is selected"},"form":"unary","right":{"text":"idc"}},{"syntax":"lbCurSel control","params":[{"name":"control","type":"Control","type_expr":"Control"}],"returns":{"type":"Number","type_expr":"Number","description":"selected index (row) or -1 if nothing is selected"},"form":"unary","right":{"text":"control"}}],"examples":[{"code":["_index = lbCurSel 101;"]},{"code":["lbCurSel _ctrl;"]}],"see_also":["lbIsSelected","lbSelection","lbSetCurSel"],"notes":[{"user":"ffur2007slx2_5","date":"2014-09-10T00:00:00Z","text":"More information on the CT_LISTBOX command family can be found here."}]}