tvData: 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


| Returns string data from item on given path. IDC means id of parent Tree View. |DESCRIPTION=
| Returns string data from item on given path. IDC means id of parent Tree View.


| '''tvData''' [idc, [path]] |SYNTAX=
| '''tvData''' [idc, [path]]


|p1= [idc, [path]]: [[Array]] |PARAMETER1=
|p1= [idc, [path]]: [[Array]]


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


|p3= [path]: [[Array]] - Array containing numbers. |PARAMETER3=
|p3= [path]: [[Array]] - Array containing numbers.


| [[String]] |RETURNVALUE=
| [[String]]


|s2= control '''tvData''' [path] |Alternative Syntax=
|s2= control '''tvData''' [path]


|p21= control: [[Control]] |PARAMETER21=
|p21= control: [[Control]] |PARAMETER21=
Line 29: Line 29:
|p22= [path]: [[Array]] - Array containing numbers. |PARAMETER22=
|p22= [path]: [[Array]] - Array containing numbers. |PARAMETER22=


|r2= [[String]] - (as above). |RETURNVALUE2=
|r2= [[String]] - (as above).


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


|x2= <code>(_display [[displayCtrl]] 101) [[tvData]] [0];</code> |EXAMPLE2=
|x2= <code>(_display [[displayCtrl]] 101) [[tvData]] [0];</code>


| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]] |SEEALSO=
| [[tvAdd]], [[tvClear]], [[tvCollapse]], [[tvCount]], [[tvCurSel]], [[tvDelete]], [[tvExpand]], [[tvPicture]], [[tvSetCurSel]], [[tvSetData]], [[tvSetPicture]], [[tvSetValue]], [[tvSort]], [[tvSortByValue]], [[tvText]], [[tvValue]]


| |MPBEHAVIOUR=
|
}}
}}

Revision as of 12:24, 18 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
tvData [idc, [path]]
Parameters:
[idc, [path]]: Array
idc: Number
[path]: Array - Array containing numbers.
Return Value:
String

Alternative Syntax

Syntax:
control tvData [path]
Parameters:
control: Control
[path]: Array - Array containing numbers.
Return Value:
String - (as above).

Examples

Example 1:
tvData [101, [0]];
Example 2:
(_display displayCtrl 101) tvData [0];

Additional Information

See also:
tvAddtvCleartvCollapsetvCounttvCurSeltvDeletetvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue

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