{"name":"lbText","title":"lbText","type":"command","url":"https://community.bistudio.com/wiki/lbText","revid":379447,"updated":"2026-10-31T00:07:44Z","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","locality":{"argument":"local","effect":"local"},"description":"Returns the shown text of the item with the given index of the CT_LISTBOX or CT_COMBO.","syntaxes":[{"syntax":"lbText [idc, index]","params":[{"name":"idc","type":"Number","description":"control IDC","type_expr":"Number"},{"name":"index","type":"Number","type_expr":"Number"}],"returns":{"type":"String","type_expr":"String"},"form":"unary","right":{"text":"[idc, index]"}},{"syntax":"control lbText index","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"index","type":"Number","type_expr":"Number"}],"returns":{"type":"String","type_expr":"String"},"form":"binary","left":{"text":"control"},"right":{"text":"index"}}],"examples":[{"code":["_text = lbText [101, 0];"]},{"code":["_text = _control lbText 0;"]}],"see_also":["lbAdd","lbSetText"],"notes":[{"user":"ffur2007slx2_5","date":"2014-09-10T00:00:00Z","text":"More information on the CT_LISTBOX command family can be found here."}]}