---
name: "lnbSetCurSelRow"
type: command
status: ok
groups: ["GUI Control - ListNBox"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lnbSetCurSelRow
revid: 369217
updated: 2024-09-03T10:34:53Z
---

# lnbSetCurSelRow

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

## Description

Selects the row with the given index of the 2D listbox.

## Syntax

### Syntax 1

```sqf
lnbSetCurSelRow [idc, index]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `index`: [Number](../topics/Number.md)

**Returns:** [Nothing](../topics/Nothing.md)

### Syntax 2

```sqf
ctrl lnbSetCurSelRow index
```

**Parameters:**

- `ctrl`: [Control](../topics/Control.md)
- `index`: [Number](../topics/Number.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
disableSerialization;
_ctrl = (findDisplay 300) displayCtrl 304;
_ctrl lnbSetCurSelRow 1;
```

## See also

[lnbAddArray](../commands/lnbAddArray.md) · [lnbAddColumn](../commands/lnbAddColumn.md) · [lnbAddRow](../commands/lnbAddRow.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) · [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 — lnbSetCurSelRow](https://community.bistudio.com/wiki/lnbSetCurSelRow) (revision 369217).</sub>
