tvSetValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 11: | Line 10: | ||
|eff= local |Multiplayer Effects= | |eff= local |Multiplayer Effects= | ||
| 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|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|DESCRIPTION= | ||
| [[tvSetValue]] [idc, path, val] |SYNTAX= | | [[tvSetValue]] [idc, path, val] |SYNTAX= | ||
Line 25: | Line 22: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
| s2= ctrl [[tvSetValue]] [path, val] |SYNTAX2= | | s2= ctrl [[tvSetValue]] [path, val] |SYNTAX2= | ||
Line 36: | Line 32: | ||
|r2= [[Nothing]] |RETURNVALUE2= | |r2= [[Nothing]] |RETURNVALUE2= | ||
|x1= <code>[[tvSetValue]] [101, [0], 555];</code> |EXAMPLE1= | |x1= <code>[[tvSetValue]] [101, [0], 555];</code> |EXAMPLE1= | ||
|x2= <code>_ctrl [[tvSetValue]] [<nowiki/>[0,0,0], 14];</code> |EXAMPLE2= | |x2= <code>_ctrl [[tvSetValue]] [<nowiki/>[0,0,0], 14];</code> |EXAMPLE2= | ||
| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO= | | [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 04:17, 17 January 2021
Description
- 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
- Groups:
- GUI Control - Tree View
Syntax
- Syntax:
- tvSetValue [idc, path, val]
- Return Value:
- Nothing
Alternative Syntax
- Syntax:
- ctrl tvSetValue [path, val]
- Parameters:
- ctrl: Control
- path: Array of Numbers
- val: Number
- Return Value:
- Nothing
Examples
- Example 1:
tvSetValue [101, [0], 555];
- Example 2:
_ctrl tvSetValue [[0,0,0], 14];
Additional Information
- See also:
- tvAddtvCleartvCollapsetvCounttvCurSeltvDatatvDeletetvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSorttvSortByValuetvTexttvValue
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note