---
name: "ctrlClassName"
type: command
status: ok
groups: ["GUI Control"]
arma3_since: "1.26"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlClassName
revid: 321025
updated: 2022-05-13T11:30:29Z
---

# ctrlClassName

*Command · GUI Control · Arma 3 v1.26*

## Description

Returns the class name of a [Control](../topics/Control.md) as it is defined in config. If you need config class of a game created [Display](../topics/Display.md), it is stored on display itself:

```sqf
_className = findDisplay 12 getVariable ["BIS_fnc_initDisplay_configClass", ""]; // "RscDiary"
```

## Syntax

```sqf
ctrlClassName control
```

**Parameters:**

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

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

## Examples

### Example 1

List class names of all controls present on display 46:

```sqf
_return = [];
{
    _return pushBack format ["IDC: %1, className: %2", ctrlIDC _x, ctrlClassName _x];
} forEach (allControls findDisplay 46);

copyToClipboard (_return joinString endl);
```

## See also

[ctrlIDC](../commands/ctrlIDC.md) · [ctrlIDD](../commands/ctrlIDD.md) · [ctrlType](../commands/ctrlType.md) · [ctrlCreate](../commands/ctrlCreate.md) · [ctrlDelete](../commands/ctrlDelete.md) · [ctrlModel](../commands/ctrlModel.md) · [ctrlSetModel](../commands/ctrlSetModel.md) · [ctrlPosition](../commands/ctrlPosition.md) · [ctrlSetPosition](../commands/ctrlSetPosition.md) · [ctrlModelScale](../commands/ctrlModelScale.md) · [ctrlSetModelScale](../commands/ctrlSetModelScale.md) · [ctrlModelDirAndUp](../commands/ctrlModelDirAndUp.md) · [ctrlSetModelDirAndUp](../commands/ctrlSetModelDirAndUp.md)

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