tvSetValue: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
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 05:17, 17 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