Arma 3 Scripting

Command in GUI Control - Tree View

tvSetData

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets string data to item on given path. IDC means id of parent Tree View.

Syntax

Syntax 1

tvSetData [idc, path, data]

Parameters:

Returns: Nothing

Syntax 2

ctrl tvSetData [path, data]

Parameters:

Returns: Nothing

Examples

Example 1

tvSetData [101, [0], "Test data"];

Example 2

_ctrl tvSetData [[0,0,0], "Test data"];

See also

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