tvSetData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
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= <code>_ctrl tvSetData [[0,0,0], "Test data"];</code>


|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]]
}}
}}

Revision as of 11:28, 13 May 2022

{{RV|type=command

|game1= arma3 |version1= 0.74

|gr1= GUI Control - Tree View

|arg= local

|eff= local

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

|s1= tvSetData [idc, path, data]

|p1= idc: Number

|p2= path: Array of Numbers

|p3= data: String

|r1= Nothing

|s2= ctrl tvSetData [path, data]

|p21= ctrl: Control

|p22= path: Array of Numbers

|p23= data: String

|r2= Nothing

|x1=

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

|x2= _ctrl tvSetData [[0,0,0], "Test data"];

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