---
name: "lnbAddRow"
type: command
status: ok
groups: ["GUI Control - ListNBox"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/lnbAddRow
revid: 378642
updated: 2026-05-16T15:05:17Z
---

# lnbAddRow

*Command · GUI Control - ListNBox · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: arguments **local** · effect **local**

## Description

Adds a row of strings.

## Syntax

### Syntax 1

```sqf
lnbAddRow [ctrl, data]
```

**Parameters:**

- `ctrl`: [Number](../topics/Number.md), [Control](../topics/Control.md) since Arma 3 v2.22
- `data`: [Array](../topics/Array.md) of [String](../topics/String.md)s

**Returns:** [Number](../topics/Number.md) - row index

### Syntax 2

```sqf
ctrl lnbAddRow data
```

**Parameters:**

- `ctrl`: [Control](../topics/Control.md)
- `data`: [Array](../topics/Array.md) of [String](../topics/String.md)s

**Returns:** [Number](../topics/Number.md) - row index

## Examples

### Example 1

```sqf
lnbAddRow [1, ["COL1", "COL2"]];
```

### Example 2

```sqf
_ctrl lnbAddRow ["COL1", "COL2"];
```

## See also

[lnbAddArray](../commands/lnbAddArray.md) · [lnbAddColumn](../commands/lnbAddColumn.md) · [lnbClear](../commands/lnbClear.md) · [lnbColor](../commands/lnbColor.md) · [lnbCurSelRow](../commands/lnbCurSelRow.md) · [lnbData](../commands/lnbData.md) · [lnbDeleteColumn](../commands/lnbDeleteColumn.md) · [lnbDeleteRow](../commands/lnbDeleteRow.md) · [lnbGetColumnsPosition](../commands/lnbGetColumnsPosition.md) · [lnbPicture](../commands/lnbPicture.md) · [lnbSetColor](../commands/lnbSetColor.md) · [lnbSetColumnsPos](../commands/lnbSetColumnsPos.md) · [lnbSetCurSelRow](../commands/lnbSetCurSelRow.md) · [lnbSetData](../commands/lnbSetData.md) · [lnbSetPicture](../commands/lnbSetPicture.md) · [lnbSetText](../commands/lnbSetText.md) · [lnbSetValue](../commands/lnbSetValue.md) · [lnbSize](../commands/lnbSize.md) · [lnbText](../commands/lnbText.md) · [lnbValue](../commands/lnbValue.md)

<sub>Source: [BI Community Wiki — lnbAddRow](https://community.bistudio.com/wiki/lnbAddRow) (revision 378642).</sub>
