{"name":"ctAddRow","operator":null,"title":"ctAddRow","type":"command","url":"https://community.bistudio.com/wiki/ctAddRow","revid":310853,"updated":"2022-05-07T20:24:08Z","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":"Adds one row of controls according to the RowTemplate class. It returns an array containing row index and array of created controls in a format [<rowIndex>, [<control0>, <control1>...<control n>]].\n\nNote that rows and headers are indexed separately.","syntaxes":[{"syntax":"ctAddRow control","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"}],"returns":{"type":"Array","types":["Array"],"description":null,"text":"Array"},"form":"unary","operator":null,"left":null,"right":{"text":"control","types":["Control"]}}],"examples":[{"text":"```sqf\n_array = ctAddRow _control;\n```","code":["_array = ctAddRow _control;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctAddHeader","ctClear","ctCurSel","ctSetCurSel","ctRowControls","ctHeaderControls","ctRowCount","ctHeaderCount","ctSetValue","ctValue","ctSetData","ctData","ctFindRowHeader","ctFindHeaderRows","ctRemoveRows","ctRemoveHeaders","ctSetRowTemplate","ctSetHeaderTemplate"],"notes":[],"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"]}