lbAdd

From Bohemia Interactive Community
Revision as of 01:33, 5 December 2014 by DreadedEntity (talk | contribs)
Jump to navigation Jump to search
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:
lbClearlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue

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

Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found here

Bottom Section