---
name: "lbColor"
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/lbColor
revid: 377362
updated: 2026-01-02T06:40:30Z
---

# lbColor

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

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

## Description

Returns the text color of the item with the given index of the CT_LISTBOX or CT_COMBO with IDC of the topmost user [dialog](../commands/dialog.md).

## Syntax

### Syntax 1

```sqf
lbColor [idc, index]
```

**Parameters:**

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

**Returns:** [Color (RGBA)](../topics/Color.md)

### Syntax 2

```sqf
control lbColor index
```

**Parameters:**

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

**Returns:** [Color (RGBA)](../topics/Color.md)

## Examples

### Example 1

```sqf
_colour = lbColor [101, 0];
```

### Example 2

```sqf
_color = _control lbColor 0;
```

## See also

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

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