---
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: 364175
updated: 2024-05-05T10:46:45Z
---

# 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 or CT_COMBO 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)

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