tvAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (<code> tidy)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Adds an item with given text to Tree View with given idc under specified path (zero based). |= Description
| Adds an item with given text to Tree View with given idc under specified path (zero based). |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


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


|p4= text: [[String]] |= PARAMETER4
|p4= text: [[String]] |= PARAMETER4


| [[Number]] |= RETURNVALUE  
| [[Number]] |= RETURNVALUE  




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


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


|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 12:33, 12 April 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

Examples

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

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