lnbAddRow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|arg= local |Multiplayer Arguments=
|arg= local


|eff= local |Multiplayer Effects=
|eff= local


|gr1= GUI Control - ListNBox |GROUP1=
|gr1= GUI Control - ListNBox


| Adds a row of strings. |DESCRIPTION=
| Adds a row of strings.


| [[lnbAddRow]] [idc, data] |SYNTAX=
| [[lnbAddRow]] [idc, data]


|p1= idc: [[Number]] |PARAMETER1=
|p1= idc: [[Number]]


|p2= data: [[Array]] of [[String]]s |PARAMETER2=
|p2= data: [[Array]] of [[String]]s


| [[Number]] - Row index |RETURNVALUE=
| [[Number]] - Row index


|s2= ctrl [[lnbAddRow]] data |SYNTAX2=
|s2= ctrl [[lnbAddRow]] data


|p21= ctrl: [[Control]] |PARAMETER21=  
|p21= ctrl: [[Control]] |PARAMETER21=  
Line 27: Line 27:
| p22= data: [[Array]] of [[String]]s |PARAMETER22=
| p22= data: [[Array]] of [[String]]s |PARAMETER22=


|r2= [[Number]] - Row index |RETURNVALUE2=
|r2= [[Number]] - Row index


|x1= <code>[[lnbAddRow]] [1, ["COL1", "COL2"]];</code>|EXAMPLE1=
|x1= <code>[[lnbAddRow]] [1, ["COL1", "COL2"]];</code>


|x2= <code>_ctrl [[lnbAddRow]] ["COL1", "COL2"];</code>|EXAMPLE2=
|x2= <code>_ctrl [[lnbAddRow]] ["COL1", "COL2"];</code>


| [[lnbAddArray]], [[lnbAddColumn]], [[lnbClear]], [[lnbColor]], [[lnbCurSelRow]], [[lnbData]], [[lnbDeleteColumn]], [[lnbDeleteRow]], [[lnbGetColumnsPosition]], [[lnbPicture]], [[lnbSetColor]], [[lnbSetColumnsPos]], [[lnbSetCurSelRow]], [[lnbSetData]], [[lnbSetPicture]], [[lnbSetText]], [[lnbSetValue]], [[lnbSize]], [[lnbText]], [[lnbValue]] |SEEALSO=
| [[lnbAddArray]], [[lnbAddColumn]], [[lnbClear]], [[lnbColor]], [[lnbCurSelRow]], [[lnbData]], [[lnbDeleteColumn]], [[lnbDeleteRow]], [[lnbGetColumnsPosition]], [[lnbPicture]], [[lnbSetColor]], [[lnbSetColumnsPos]], [[lnbSetCurSelRow]], [[lnbSetData]], [[lnbSetPicture]], [[lnbSetText]], [[lnbSetValue]], [[lnbSize]], [[lnbText]], [[lnbValue]]


| |MPBEHAVIOUR=
| |MPBEHAVIOUR=

Revision as of 01:03, 18 January 2021

Hover & click on the images for description

Description

Description:
Adds a row of strings.
Groups:
GUI Control - ListNBox

Syntax

Syntax:
lnbAddRow [idc, data]
Parameters:
idc: Number
data: Array of Strings
Return Value:
Number - Row index

Alternative Syntax

Syntax:
ctrl lnbAddRow data
Parameters:
ctrl: Control
data: Array of Strings
Return Value:
Number - Row index

Examples

Example 1:
lnbAddRow [1, ["COL1", "COL2"]];
Example 2:
_ctrl lnbAddRow ["COL1", "COL2"];

Additional Information

See also:
lnbAddArraylnbAddColumnlnbClearlnbColorlnbCurSelRowlnbDatalnbDeleteColumnlnbDeleteRowlnbGetColumnsPositionlnbPicturelnbSetColorlnbSetColumnsPoslnbSetCurSelRowlnbSetDatalnbSetPicturelnbSetTextlnbSetValuelnbSizelnbTextlnbValue

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