lbClear: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Named page template arguments)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp


|1.5
|version1= 1.50


|arg= local
|arg= local
Line 11: Line 11:
|gr1= GUI Control - ListBox
|gr1= GUI Control - ListBox


| Clear all items in listbox or combobox with id idc of topmost user [[dialog]].
|descr= Clear all items from a listbox / combobox.


| [[lbClear]] idc
|s1= [[lbClear]] idc


|p1= idc: [[Number]]
|p1= idc: [[Number]] - IDC of the target listbox / combobox in the topmost [[Arma: GUI Configuration|Dialog]].


| [[Nothing]]
|r1= [[Nothing]]


|s2= [[lbClear]] control
|s2= [[lbClear]] control
Line 25: Line 25:
|r2= [[Nothing]]
|r2= [[Nothing]]


 
|x1= <code>[[lbClear]] 101;</code>
|x1= <code>[[lbClear]] 101;</code>


|x2= <code>[[lbClear]] _ctrl;</code>
|x2= <code>[[lbClear]] _ctrl;</code>


| [[lbAdd]], [[lbColor]], [[lbCurSel]], [[lbData]], [[lbDelete]], [[lbIsSelected]], [[lbPicture]], [[lbSelection]], [[lbSetColor]], [[lbSetCurSel]], [[lbSetData]], [[lbSetPicture]], [[lbSetSelected]], [[lbSetTooltip]], [[lbSetValue]], [[lbSize]], [[lbSort]], [[lbSortByValue]], [[lbText]], [[lbValue]]
|seealso= [[lbAdd]] [[lbColor]] [[lbCurSel]] [[lbData]] [[lbDelete]] [[lbIsSelected]] [[lbPicture]] [[lbSelection]] [[lbSetColor]] [[lbSetCurSel]] [[lbSetData]] [[lbSetPicture]] [[lbSetSelected]] [[lbSetTooltip]] [[lbSetValue]] [[lbSize]] [[lbSort]] [[lbSortByValue]] [[lbText]] [[lbValue]]
}}
}}



Revision as of 13:06, 25 January 2021

Hover & click on the images for description

Description

Description:
Clear all items from a listbox / combobox.
Groups:
GUI Control - ListBox

Syntax

Syntax:
lbClear idc
Parameters:
idc: Number - IDC of the target listbox / combobox in the topmost Dialog.
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:
lbAdd lbColor lbCurSel lbData lbDelete lbIsSelected lbPicture lbSelection lbSetColor lbSetCurSel lbSetData lbSetPicture lbSetSelected lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbValue

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
Posted: Sep 10 2014
ffur2007slx2_5
More information on the LB command family can be found here