{"name":"ctSetData","operator":null,"title":"ctSetData","type":"command","url":"https://community.bistudio.com/wiki/ctSetData","revid":310914,"updated":"2022-05-07T20:34:41Z","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":"Associates metadata (string) with the row determined by the index. Returns Nothing.","syntaxes":[{"syntax":"ctrl ctSetData [index, data]","since":null,"effect":null,"exec":null,"params":[{"name":"ctrl","type":"Control","optional":false,"default":null,"description":"the respective control","types":["Control"],"since":null,"text":"ctrl: Control - the respective control"},{"name":"index","type":"Number","optional":false,"default":null,"description":"the row index","types":["Number"],"since":null,"text":"index: Number - the row index"},{"name":"data","type":"String","optional":false,"default":null,"description":"the data to set","types":["String"],"since":null,"text":"data: String - the data to set"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"ctrl","types":["Control"]},"right":{"text":"[index, data]","types":["Array"]}}],"examples":[{"text":"```sqf\n_control ctSetData [0, \"Test\"];\n```","code":["_control ctSetData [0, \"Test\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctAddRow","ctAddHeader","ctClear","ctCurSel","ctSetCurSel","ctRowControls","ctHeaderControls","ctRowCount","ctHeaderCount","ctSetValue","ctValue","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"]}