{"name":"tvSetValue","operator":null,"title":"tvSetValue","type":"command","url":"https://community.bistudio.com/wiki/tvSetValue","revid":321508,"updated":"2022-05-17T11:23:14Z","groups":["GUI Control - Tree View"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.74"}],"since":{"game":"arma3","name":"Arma 3","version":"0.74"},"arma3_since":"0.74","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Sets scalar data to item on given path. IDC means id of parent Tree View. If the given value is not integer, it will be converted to integer","syntaxes":[{"syntax":"tvSetValue [idc, path, val]","since":null,"effect":null,"exec":null,"params":[{"name":"idc","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"idc: Number"},{"name":"path","type":"Array of Numbers","optional":false,"default":null,"description":null,"types":["Array","Number"],"since":null,"text":"path: Array of Numbers"},{"name":"val","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"val: Number"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"[idc, path, val]","types":["Array"]}},{"syntax":"ctrl tvSetValue [path, val]","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":"path","type":"Array of Numbers","optional":false,"default":null,"description":null,"types":["Array","Number"],"since":null,"text":"path: Array of Numbers"},{"name":"val","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"val: Number"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"ctrl","types":["Control"]},"right":{"text":"[path, val]","types":["Array"]}}],"examples":[{"text":"```sqf\ntvSetValue [101, [0], 555];\n```","code":["tvSetValue [101, [0], 555];"]},{"text":"```sqf\n_ctrl tvSetValue [[0,0,0], 14];\n```","code":["_ctrl tvSetValue [[0,0,0], 14];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["tvAdd","tvClear","tvCollapse","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvPicture","tvSetCurSel","tvSetData","tvSetPicture","tvSort","tvSortByValue","tvText","tvValue"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Tree View","Introduced with Arma 3 version 0.74","Scripting Commands","Scripting Commands: Local Effect"]}