---
name: "lbSetValue"
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/lbSetValue
revid: 379444
updated: 2026-10-31T00:07:20Z
---

# lbSetValue

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

## Description

Sets the additional value in the row with the given index of a [CT_LISTBOX](../topics/CT_LISTBOX.md) or [CT_COMBO](../topics/CT_COMBO.md) control.

## Syntax

### Syntax 1

```sqf
lbSetValue [idc, index, value]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md) - control IDC
- `index`: [Number](../topics/Number.md)
- `value`: [Number](../topics/Number.md) - only integer values are supported

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

### Syntax 2

```sqf
control lbSetValue [index, value]
```

**Parameters:**

- `control`: [Control](../topics/Control.md)
- `index`: [Number](../topics/Number.md)
- `value`: [Number](../topics/Number.md) - only integer values are supported

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

## Examples

### Example 1

```sqf
lbSetValue [101, 0, 1];
```

### Example 2

```sqf
_control lbSetValue [0, 1];
```

## See also

[lbSortByValue](../commands/lbSortByValue.md) · [lbValue](../commands/lbValue.md)

## Community notes

**ffur2007slx2_5** — 2014-09-10

More information on the [CT_LISTBOX](../topics/CT_LISTBOX.md) command family can be found [here](../topics/CT_LISTBOX.md#scripting-example).

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