{"name":"ctRemoveRows","operator":null,"title":"ctRemoveRows","type":"command","url":"https://community.bistudio.com/wiki/ctRemoveRows","revid":376516,"updated":"2025-10-22T23:05:37Z","groups":["GUI Control - Controls Table"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.70"}],"since":{"game":"arma3","name":"Arma 3","version":"1.70"},"arma3_since":"1.70","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Takes array of row indices as a parameter and removes rows with those indices. Indices of remaining rows will be recomputed.","syntaxes":[{"syntax":"ctrl ctRemoveRows [index1, index2, ...]","since":null,"effect":null,"exec":null,"params":[{"name":"ctrl","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"ctrl: Control"},{"name":"indexN","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"indexN: Number"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"ctrl","types":["Control"]},"right":{"text":"[index1, index2, ...]","types":["Array"]}}],"examples":[{"text":"```sqf\n_control ctRemoveRows [0, 1, 2];\n```","code":["_control ctRemoveRows [0, 1, 2];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctAddRow","ctAddHeader","ctClear","ctCurSel","ctSetCurSel","ctRowControls","ctHeaderControls","ctRowCount","ctHeaderCount","ctSetValue","ctValue","ctSetData","ctData","ctFindRowHeader","ctFindHeaderRows","ctRemoveHeaders","ctSetRowTemplate","ctSetHeaderTemplate"],"notes":[{"user":"7erra","date":"2021-01-02T15:05:00Z","text":"If you want to remove a row by clicking on a button in the ControlsTable make sure that the code is scheduled. Otherwise the game will crash."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Controls Table","Introduced with Arma 3 version 1.70","Scripting Commands","Scripting Commands: Local Effect"]}