lbAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|LBADD]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|LBADD]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|LBADD]]


| ofpr |= Game name


<h2 style="color:#000066"> '''lbAdd [''idc'', ''text'']'''</h2>
|1.5|= Game version
____________________________________________________________________________________________


| Add item with given text to listbox or combobox with id idc of topmost user [[dialog]]. Return index of new added item. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''lbAdd''' |= Syntax


'''[idc, text]:''' [[Array]]
|p1= [idc, text]: [[Array]] |= Parameter 1


'''Type of returned value:'''
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_index = lbAdd [101, "First item"]</pre> |= Example 1
____________________________________________________________________________________________


[[Number]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.50'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Add item with given '''text''' to listbox or combobox with id '''idc''' of topmost user [[dialog]].
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|LBADD]]
Return index of new added item.
[[Category:Scripting Commands OFP 1.96|LBADD]]
 
[[Category:Scripting Commands ArmA|LBADD]]
 
'''Example:'''
 
_index = '''lbAdd''' [101, "First item"]

Revision as of 00:39, 2 August 2006

Hover & click on the images for description

Description

Description:
Add item with given text to listbox or combobox with id idc of topmost user dialog. Return index of new added item.
Groups:
Uncategorised

Syntax

Syntax:
lbAdd
Parameters:
[idc, text]: Array
Return Value:
Number

Examples

Example 1:
_index = lbAdd [101, "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