---
name: "tvCount"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "0.74"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/tvCount
revid: 319984
updated: 2022-05-13T09:25:50Z
---

# tvCount

*Command · GUI Control - Tree View · Arma 3 v0.74*

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

## Description

Returns children count on given path. IDC means id of parent Tree View.

## Syntax

### Syntax 1

```sqf
tvCount [idc, path]
```

**Parameters:**

- `idc`: [Number](../topics/Number.md)
- `path`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s

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

### Syntax 2

```sqf
ctrl tvCount path
```

**Parameters:**

- `ctrl`: [Control](../topics/Control.md)
- `path`: [Array](../topics/Array.md) of [Number](../topics/Number.md)s

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

## Examples

### Example 1

```sqf
tvCount [101, [0]];
```

### Example 2

```sqf
_ctrl tvCount [1,0];
```

## See also

[tvAdd](../commands/tvAdd.md) · [tvClear](../commands/tvClear.md) · [tvCollapse](../commands/tvCollapse.md) · [tvCurSel](../commands/tvCurSel.md) · [tvData](../commands/tvData.md) · [tvDelete](../commands/tvDelete.md) · [tvExpand](../commands/tvExpand.md) · [tvPicture](../commands/tvPicture.md) · [tvSetCurSel](../commands/tvSetCurSel.md) · [tvSetData](../commands/tvSetData.md) · [tvSetPicture](../commands/tvSetPicture.md) · [tvSetValue](../commands/tvSetValue.md) · [tvSort](../commands/tvSort.md) · [tvSortByValue](../commands/tvSortByValue.md) · [tvText](../commands/tvText.md) · [tvValue](../commands/tvValue.md)

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