---
name: "tvValue"
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/tvValue
revid: 347317
updated: 2023-09-10T15:24:11Z
---

# tvValue

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

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

## Description

Returns numeric value set for given tree view path.

## Syntax

### Syntax 1

```sqf
tvValue [idc, path]
```

**Parameters:**

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

**Returns:** [Number](../topics/Number.md) - set value; if no value was set, 0 is returned

### Syntax 2

```sqf
ctrl tvValue path
```

**Parameters:**

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

**Returns:** [Number](../topics/Number.md) - set value; if no value was set, 0 is returned

## Examples

### Example 1

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

### Example 2

```sqf
_ctrl tvValue [0,0,0];
```

## See also

[tvAdd](../commands/tvAdd.md) · [tvClear](../commands/tvClear.md) · [tvCollapse](../commands/tvCollapse.md) · [tvCount](../commands/tvCount.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)

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