lbSetData: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(4 intermediate revisions by the same user not shown)
Line 48: Line 48:
|r2= [[Nothing]]
|r2= [[Nothing]]


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


|x2= <code>_control [[lbSetData]] [1, "#1"];</code>
|x2= <sqf>_control lbSetData [1, "#1"];</sqf>


|seealso= [[lbData]], [[lbDelete]], [[lbSetValue]], [[lbValue]]
|seealso= [[lbData]] [[lbDelete]] [[lbSetValue]] [[lbValue]]
}}
}}

Latest revision as of 10:23, 13 May 2022

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:
lbData lbDelete lbSetValue 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