---
name: "lbData"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/lbData
revid: 364197
updated: 2024-05-05T10:46:54Z
---

# lbData

*Command · GUI Control - ListBox · Arma 3 v0.50 · introduced in Operation Flashpoint v1.75*

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

## Description

Returns the data set in given index of the CT_LISTBOX or CT_COMBO.

## Syntax

### Syntax 1

```sqf
lbData [idc, index]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md) - control's IDC
- `index`: [Number](../topics/Number.md)

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

### Syntax 2

```sqf
control lbData index
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_data = lbData [101, 0];
```

### Example 2

```sqf
_data = _control lbData 0;
```

## See also

[lbSetData](../commands/lbSetData.md)

## Community notes

**ffur2007slx2_5** — 2014-09-10

More information on the CT_LISTBOX command family can be found here.

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