lbClear: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(18 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|LBCLEAR]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|LBCLEAR]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|LBCLEAR]]
 
| ofp |= Game name
 
|1.5|= Game version
 
|arg= local |= Arguments in MP


|eff= local |= Effects in MP
____________________________________________________________________________________________


<h2 style="color:#000066"> '''lbClear ''idc'''''</h2>
| Clear all items in listbox or combobox with id idc of topmost user [[dialog]]. |DESCRIPTION=
____________________________________________________________________________________________


| [[lbClear]] idc |SYNTAX=


'''Operand types:'''
|p1= idc: [[Number]] |PARAMETER1=


'''idc:''' [[Number]]
| [[Nothing]] |RETURNVALUE=


'''Type of returned value:'''
|s2= [[lbClear]] control |SYNTAX=


[[Nothing]]
|p21=  control: [[Control]] |PARAMETER1=


'''Compatibility:'''
|r2= [[Nothing]] |RETURNVALUE=


Added in version '''1.50'''
____________________________________________________________________________________________
 
|x1= <code>[[lbClear]] 101;</code> |EXAMPLE1=


'''Description:'''
|x2= <code>[[lbClear]] _ctrl;</code> |EXAMPLE2=
____________________________________________________________________________________________


Clear all items in listbox or combobox with id '''idc''' of topmost user [[dialog]].
| [[lbAdd]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]] |SEEALSO=


}}


'''Example:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted: Sep 10 2014</dd>
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]</dt>
<dd class="note">More information on the LB command family can be found [https://community.bistudio.com/wiki/List_Box here]
<!-- Note Section END -->
</dl>


'''lbClear''' 101
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|LBCLEAR]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|LBCLEAR]]
[[Category:Scripting Commands ArmA|LBCLEAR]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:42, 7 April 2019

Hover & click on the images for description

Description

Description:
Clear all items in listbox or combobox with id idc of topmost user dialog.
Groups:
Uncategorised

Syntax

Syntax:
lbClear idc
Parameters:
idc: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
lbClear control
Parameters:
control: Control
Return Value:
Nothing

Examples

Example 1:
lbClear 101;
Example 2:
lbClear _ctrl;

Additional Information

See also:
lbAddlbColorlbCurSellbDatalbDeletelbIsSelectedlbPicturelbSelectionlbSetColorlbSetCurSellbSetDatalbSetPicturelbSetSelectedlbSetTooltiplbSetValuelbSizelbSortlbSortByValuelbTextlbValue

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