tvAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (al & el)
(syntax & example)
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''tvAdd''' [idc, [path], text] |= Syntax
| [[tvAdd]] [idc, [path], text] |= Syntax


|p1= [idc, [path], text]: [[Array]] |= PARAMETER1  
|p1= [idc, [path], text]: [[Array]] |= PARAMETER1  
Line 26: Line 26:
| [[Number]] |= RETURNVALUE  
| [[Number]] |= RETURNVALUE  


____________________________________________________________________________________________
| s2= _ctrl [[tvAdd]] [ [path], text] |= Syntax
| p21= _ctrl: [[Control]] |= PARAMETER1
| p22= [ [path], text]: [[Array]] |= PARAMETER2
| r2= [[Number]] |= RETURNVALUE
____________________________________________________________________________________________


|x1= <code>[[tvAdd]] [101, [0], "First item"];</code> |= Example 1
|x1= <code>[[tvAdd]] [101, [0], "First item"];</code> |= Example 1
|x2= <code>_ctrl [[tvAdd]] [ [], "Parent_A"];</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 08:00, 11 September 2014

Hover & click on the images for description

Description

Description:
Adds an item with given text to Tree View with given idc under specified path (zero based).
Groups:
Uncategorised

Syntax

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

Alternative Syntax

Syntax:
_ctrl tvAdd [ [path], text]
Parameters:
_ctrl: Control
[ [path], text]: Array
Return Value:
Number

Examples

Example 1:
tvAdd [101, [0], "First item"];
Example 2:
_ctrl tvAdd [ [], "Parent_A"];

Additional Information

See also:
tvCleartvCollapsetvCounttvCurSeltvDatatvDeletetvExpandtvPicturetvSetCurSeltvSetDatatvSetPicturetvSetValuetvSorttvSortByValuetvTexttvValue

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

Notes

Bottom Section