tvSetData: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 16: Line 16:
|p1= idc: [[Number]]
|p1= idc: [[Number]]


|p2= path: [[Array]] of [[Number]]s
|p2= path: [[Tree View Path]]


|p3= data: [[String]]
|p3= data: [[String]]
Line 26: Line 26:
|p21= ctrl: [[Control]]
|p21= ctrl: [[Control]]


|p22= path: [[Array]] of [[Number]]s
|p22= path: [[Tree View Path]]


|p23= data: [[String]]
|p23= data: [[String]]
Line 34: Line 34:
|x1= <sqf>tvSetData [101, [0], "Test data"];</sqf>
|x1= <sqf>tvSetData [101, [0], "Test data"];</sqf>


|x2= <code>_ctrl tvSetData [<nowiki/>[0,0,0], "Test data"];</code>
|x2= <sqf>_ctrl tvSetData [[0,0,0], "Test data"];</sqf>


|seealso= [[tvAdd]] [[tvClear]] [[tvCollapse]] [[tvCount]] [[tvCurSel]] [[tvData]] [[tvDelete]] [[tvExpand]] [[tvPicture]] [[tvSetCurSel]] [[tvSetPicture]] [[tvSetValue]] [[tvSort]] [[tvSortByValue]] [[tvText]] [[tvValue]]
|seealso= [[tvAdd]] [[tvClear]] [[tvCollapse]] [[tvCount]] [[tvCurSel]] [[tvData]] [[tvDelete]] [[tvExpand]] [[tvPicture]] [[tvSetCurSel]] [[tvSetPicture]] [[tvSetValue]] [[tvSort]] [[tvSortByValue]] [[tvText]] [[tvValue]]
}}
}}

Latest revision as of 18:15, 2 April 2026

Hover & click on the images for description

Description

Description:
Sets string data to item on given path. IDC means id of parent Tree View.
Groups:
GUI Control - Tree View

Syntax

Syntax:
tvSetData [idc, path, data]
Parameters:
idc: Number
path: Tree View Path
data: String
Return Value:
Nothing

Alternative Syntax

Syntax:
ctrl tvSetData [path, data]
Parameters:
ctrl: Control
path: Tree View Path
data: String
Return Value:
Nothing

Examples

Example 1:
tvSetData [101, [0], "Test data"];
Example 2:
_ctrl tvSetData [[0,0,0], "Test data"];

Additional Information

See also:
tvAdd tvClear tvCollapse tvCount tvCurSel tvData tvDelete tvExpand tvPicture tvSetCurSel tvSetPicture tvSetValue tvSort tvSortByValue tvText tvValue

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note