{"name":"lnbAddColumn","operator":null,"title":"lnbAddColumn","type":"command","url":"https://community.bistudio.com/wiki/lnbAddColumn","revid":378410,"updated":"2026-04-04T08:30:26Z","groups":["GUI Control - ListNBox"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Adds a column at given position.","syntaxes":[{"syntax":"control lnbAddColumn position","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"position","type":"Number","optional":false,"default":null,"description":"position of the new column where 0 means all the way to the left and 1 all the way to the right of the control","types":["Number"],"since":null,"text":"position: Number - position of the new column where 0 means all the way to the left and 1 all the way to the right of the control"}],"returns":{"type":"Number or Nothing","types":["Number","Nothing"],"description":"returns the zero based index of the new column","text":"Number or Nothing - returns the zero based index of the new column"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"position","types":["Number"]}},{"syntax":"lnbAddColumn [controlOrIdc, position]","since":null,"effect":null,"exec":null,"params":[{"name":"controlOrIdc","type":"Control or Number","optional":false,"default":null,"description":"control or the idc of the control","types":["Control","Number"],"since":null,"text":"controlOrIdc: Control or Number - control or the idc of the control"},{"name":"position","type":"Number","optional":false,"default":null,"description":"position of the new column where 0 means all the way to the left and 1 all the way to the right of the control","types":["Number"],"since":null,"text":"position: Number - position of the new column where 0 means all the way to the left and 1 all the way to the right of the control"}],"returns":{"type":"Number or Nothing","types":["Number","Nothing"],"description":"returns the zero based index of the new column","text":"Number or Nothing - returns the zero based index of the new column"},"form":"unary","operator":null,"left":null,"right":{"text":"[controlOrIdc, position]","types":["Array"]}}],"examples":[{"text":"```sqf\n_ctrl lnbAddColumn 0.8;\n```","code":["_ctrl lnbAddColumn 0.8;"]},{"text":"```sqf\nlnbAddColumn [105, 0.8];\n```","code":["lnbAddColumn [105, 0.8];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["lnbAddArray","lnbAddRow","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbSetColumnsPos"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - ListNBox","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}