lnbAddArray: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
m (updated syntax) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 21: | Line 21: | ||
|descr= Adds list of rows of strings. | |descr= Adds list of rows of strings. | ||
|s1= [[lnbAddArray]] [ | |s1= [[lnbAddArray]] [ctrl, arrayOfTextAndValues] | ||
|p1= | |p1= ctrl: [[Number]], [[Control]] since {{GVI|arma3|2.22}} | ||
|p2= arrayOfTextAndValues: [[Array]] of [[Array]]s format <nowiki>[[text], [value], [data]]</nowiki>: | |p2= arrayOfTextAndValues: [[Array]] of [[Array]]s format <nowiki>[[text], [value], [data]]</nowiki>: | ||
| Line 40: | Line 40: | ||
[1], | [1], | ||
["#1"] | ["#1"] | ||
], | |||
[ | |||
["#2"], | |||
[2], | |||
["#2"] | |||
] | ] | ||
] | ] | ||
Latest revision as of 17:03, 16 May 2026
Description
- Description:
- Adds list of rows of strings.
- Groups:
- GUI Control - ListNBox
Syntax
- Syntax:
- lnbAddArray [ctrl, arrayOfTextAndValues]
- Parameters:
- ctrl: Number, Control since
2.22 - arrayOfTextAndValues: Array of Arrays format [[text], [value], [data]]:
- Return Value:
- Number - index
Examples
- Example 1:
- lnbAddArray [ 102, [ [ ["#1"], [1], ["#1"] ], [ ["#2"], [2], ["#2"] ] ] ];
Additional Information
- See also:
- lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbText lnbValue
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note