---
name: "lbText"
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/lbText
revid: 348353
updated: 2023-11-08T12:59:52Z
---

# lbText

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

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

## Description

Returns the shown text of the item with the given index of the CT_LISTBOX or CT_COMBO.

## Syntax

### Syntax 1

```sqf
lbText [idc, index]
```

**Parameters:**

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

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

### Syntax 2

```sqf
control lbText index
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_text = lbText [101, 0];
```

### Example 2

```sqf
_text = _control lbText 0;
```

## See also

[lbAdd](../commands/lbAdd.md) · [lbSetText](../commands/lbSetText.md)

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