lbDelete: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp


|
|version1= 1.75
 
|game2= ofpe
 
|version2= 1.00
 
|game3= arma1
 
|version3= 1.00
 
|game4= arma2
 
|version4= 1.00
 
|game5= arma2oa
 
|version5= 1.51
 
|game6= tkoh
 
|version6= 1.00
 
|game7= arma3
 
|version7= 0.50


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


| Removes the item with the given index from the listbox or combobox/toolbox with id idc of the topmost user [[dialog]].
|descr= Removes the item with the given index from the [[CT_LISTBOX]], [[CT_COMBO]] or [[CT_TOOLBOX]].


| '''lbDelete''' [idc, index]
|s1= '''lbDelete''' [idc, index]


|p1= [idc, index]: [[Array]]
|p1= idc: [[Number]] - Control IDC
|p2= idc: [[Number]] of control
 
|p3= index: [[Number]]
|p2= index: [[Number]]
| [[Nothing]]
 
|r1= [[Nothing]]


|s2= control '''lbDelete''' index
|s2= control '''lbDelete''' index


|p21= control: [[Control]]
|p21= control: [[Control]]
|p22= index: [[Number]]
|p22= index: [[Number]]
|r2= [[Nothing]]
|r2= [[Nothing]]
   
   
Line 30: Line 57:
|x2= <code>_control [[lbDelete]] 0;</code>
|x2= <code>_control [[lbDelete]] 0;</code>


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


Line 38: Line 65:
<dd class="note">More information on the [[CT_LISTBOX]] command family can be found [[CT_LISTBOX#Scripting_Example|here]].
<dd class="note">More information on the [[CT_LISTBOX]] command family can be found [[CT_LISTBOX#Scripting_Example|here]].
</dl>
</dl>
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 18:14, 12 April 2021

Hover & click on the images for description

Description

Description:
Removes the item with the given index from the CT_LISTBOX, CT_COMBO or CT_TOOLBOX.
Groups:
GUI Control - ListBox

Syntax

Syntax:
lbDelete [idc, index]
Parameters:
idc: Number - Control IDC
index: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
control lbDelete index
Parameters:
control: Control
index: Number
Return Value:
Nothing

Examples

Example 1:
lbDelete [101, 0];
Example 2:
_control lbDelete 0;

Additional Information

See also:
lbAdd lbClear

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 CT_LISTBOX command family can be found here.