lbAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 14: Line 14:
'''Description:'''
'''Description:'''


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


Return index of new added item.
Return index of new added item.

Revision as of 13:03, 16 April 2006

back to COMREF

lbAdd [idc, text]


Operand types:

[idc, text]: Array

Type of returned value:

Number

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"]