lbSetData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |game5= arma2oa |version5= 1.51" to " |game5= arma2oa |version5= 1.50")
m (Text replacement - " " to " ")
Line 47: Line 47:


|r2= [[Nothing]]
|r2= [[Nothing]]
 
 
|x1= <code>[[lbSetData]] [101, 1, "#1"];</code>
|x1= <code>[[lbSetData]] [101, 1, "#1"];</code>



Revision as of 21:02, 10 June 2021

Hover & click on the images for description

Description

Description:
Sets the additional text (invisible) in the item with the given index of the listbox or combobox with id idc of the topmost user dialog to the given data.
See more information on the CT_LISTBOX command family here.
Groups:
GUI Control - ListBox

Syntax

Syntax:
lbSetData [idc, index, data]
Parameters:
idc: Number - control's IDC
index: Number
data: String
Return Value:
Nothing

Alternative Syntax

Syntax:
control lbSetData [index, data]
Parameters:
control: Control
index: Number
data: String
Return Value:
Nothing

Examples

Example 1:
lbSetData [101, 1, "#1"];
Example 2:
_control lbSetData [1, "#1"];

Additional Information

See also:
lbDatalbDeletelbSetValuelbValue

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