---
name: "lnbCurSelRow"
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/lnbCurSelRow
revid: 309967
updated: 2022-05-05T12:17:01Z
---

# lnbCurSelRow

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

## Description

Returns the index of the selected row id 2D listbox.

## Syntax

### Syntax 1

```sqf
lnbCurSelRow idc
```

**Parameters:**

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

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

### Syntax 2

```sqf
lnbCurSelRow ctrl
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
lnbCurSelRow _ctrl;
```

## See also

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