---
name: "lbSetData"
type: command
status: ok
groups: ["GUI Control - ListBox"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/lbSetData
revid: 319184
updated: 2022-05-13T09:23:19Z
---

# lbSetData

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

## Description

Sets the additional text (invisible) in the item with the given index of the listbox or combobox with id idc of the topmost user [dialog](../commands/dialog.md) to the given data.

> [!NOTE]
> See more information on the CT_LISTBOX command family here.

## Syntax

### Syntax 1

```sqf
lbSetData [idc, index, data]
```

**Parameters:**

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

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

### Syntax 2

```sqf
control lbSetData [index, data]
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
lbSetData [101, 1, "#1"];
```

### Example 2

```sqf
_control lbSetData [1, "#1"];
```

## See also

[lbData](../commands/lbData.md) · [lbDelete](../commands/lbDelete.md) · [lbSetValue](../commands/lbSetValue.md) · [lbValue](../commands/lbValue.md)

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