tvSetValue: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|0.74 | |0.74 | ||
|gr1= GUI Control - Tree View | |gr1= GUI Control - Tree View | ||
|arg= local | |arg= local | ||
|eff= local | |eff= local | ||
| 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 | | 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 | ||
| [[tvSetValue]] [idc, path, val] | | [[tvSetValue]] [idc, path, val] | ||
|p2= idc: [[Number]] | |p2= idc: [[Number]] | ||
|p3= path: [[Array]] of [[Number]]s | |p3= path: [[Array]] of [[Number]]s | ||
|p4= val: [[Number]] | |p4= val: [[Number]] | ||
| [[Nothing]] | | [[Nothing]] | ||
| s2= ctrl [[tvSetValue]] [path, val] | | s2= ctrl [[tvSetValue]] [path, val] | ||
|p21= ctrl: [[Control]] |PARAMETER21= | |p21= ctrl: [[Control]] |PARAMETER21= | ||
Line 31: | Line 31: | ||
|p23= val: [[Number]] |PARAMETER23= | |p23= val: [[Number]] |PARAMETER23= | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <code>[[tvSetValue]] [101, [0], 555];</code> | |x1= <code>[[tvSetValue]] [101, [0], 555];</code> | ||
|x2= <code>_ctrl [[tvSetValue]] [<nowiki/>[0,0,0], 14];</code> | |x2= <code>_ctrl [[tvSetValue]] [<nowiki/>[0,0,0], 14];</code> | ||
| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] | | [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:24, 18 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