lbAdd
Jump to navigation
Jump to search
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