tvSetValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
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|Comments=
{{Command


| arma3 |Game name=
| arma3


|0.74|Game version=
|0.74


|gr1= GUI Control - Tree View |GROUP1=
|gr1= GUI Control - Tree View


|arg= local |Multiplayer Arguments=
|arg= local


|eff= local |Multiplayer Effects=
|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|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


| [[tvSetValue]] [idc, path, val] |SYNTAX=
| [[tvSetValue]] [idc, path, val]


|p2= idc: [[Number]] |PARAMETER2=
|p2= idc: [[Number]]


|p3= path: [[Array]] of [[Number]]s |PARAMETER3=
|p3= path: [[Array]] of [[Number]]s


|p4= val: [[Number]] |PARAMETER4=
|p4= val: [[Number]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


| s2= ctrl [[tvSetValue]] [path, val] |SYNTAX2=
| 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]] |RETURNVALUE2=
|r2= [[Nothing]]


|x1= <code>[[tvSetValue]] [101, [0], 555];</code> |EXAMPLE1=
|x1= <code>[[tvSetValue]] [101, [0], 555];</code>


|x2= <code>_ctrl [[tvSetValue]] [<nowiki/>[0,0,0], 14];</code> |EXAMPLE2=
|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]] |SEEALSO=
| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvData]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 11:24, 18 January 2021

Hover & click on the images for description

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

Bottom Section