lbAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. ArmA2 classification)
(merged command variations)
Line 23: Line 23:


| [[Number]] |= Return value
| [[Number]] |= Return value
|s2= control '''lbAdd''' text |= Syntax
|p21= control: [[Control]] |= Parameter 1
|p22= text: [[String]] |= Parameter 2
|r2= [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_index = lbAdd [101, "First item"]</pre> |= Example 1
|x1= <pre>_index = lbAdd [101, "First item"]</pre> |= Example 1
|x2= <pre>_index = _control lbAdd "First item"</pre> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 18:33, 22 July 2009

Hover & click on the images for description

Description

Description:
Adds an item with the given text to the listbox or combobox with id idc of the topmost user dialog. It returns the index of the newly added item.
Groups:
Uncategorised

Syntax

Syntax:
Number = lbAdd [idc, text]
Parameters:
[idc, text]: Array
idc: Number of control
text: String
Return Value:
Number

Alternative Syntax

Syntax:
control lbAdd text
Parameters:
control: Control
text: String
Return Value:
Number

Examples

Example 1:
_index = lbAdd [101, "First item"]
Example 2:
_index = _control lbAdd "First item"

Additional Information

See also:
See also needed

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