lbAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|LBADD]]
[[Category:Scripting Commands|LBADD]]
[[Category:Scripting Commands OFP 1.97|LBADD]]
[[Category:Scripting Commands OFP 1.96|LBADD]]
[[Category:Scripting Commands ArmA|LBADD]]
[[Category:Scripting Commands ArmA|LBADD]]



Revision as of 21:46, 1 June 2006


lbAdd [idc, text]


Operand types:

[idc, text]: Array

Type of returned value:

Number

Compatibility:

Added in version 1.50

Description:

Add item with given text to listbox or combobox with id idc of topmost user dialog.

Return index of new added item.


Example:

_index = lbAdd [101, "First item"]