{"name":"lbSize","title":"lbSize","type":"command","url":"https://community.bistudio.com/wiki/lbSize","revid":353733,"updated":"2024-03-22T10:26:54Z","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 number of items in a CT_LISTBOX or CT_COMBO control. For CT_TOOLBOX size see lnbSize.","syntaxes":[{"syntax":"lbSize idc","params":[{"name":"idc","type":"Number","description":"control's id","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"idc"}},{"syntax":"lbSize control","params":[{"name":"control","type":"Control","type_expr":"Control"}],"returns":{"type":"Number","type_expr":"Number"},"form":"unary","right":{"text":"control"}}],"examples":[{"code":["_size = lbSize 101;"]},{"code":["_size = lbSize _control;"]}],"see_also":["lbAdd","lbClear","lbColor","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbSelection","lbSetColor","lbSetCurSel","lbSetData","lbSetPicture","lbSetSelected","lbSetTooltip","lbSetValue","lbSort","lbSortByValue","lbText","lbValue"],"notes":[{"user":"Ffur2007slx2_5","date":"2014-09-10T16:32:00Z","text":"More information on the CT_LISTBOX command family can be found here."}]}