lbAdd: Difference between revisions
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 17:33, 22 July 2009
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
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.5
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Command Group: GUI Control
- Scripting Commands ArmA2