---
name: "tvText"
type: command
status: ok
groups: ["GUI Control - Tree View"]
arma3_since: "0.74"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/tvText
revid: 330021
updated: 2022-08-15T14:44:30Z
---

# tvText

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

## Description

Returns shown text in the item on given path. IDC means id of parent Tree View.

## Syntax

### Syntax 1

```sqf
tvText [idc, path]
```

**Parameters:**

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

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

### Syntax 2

```sqf
control tvText path
```

**Parameters:**

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

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

## Examples

### Example 1

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

### Example 2

```sqf
_ctrl tvText [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) · [tvValue](../commands/tvValue.md) · [tvSetText](../commands/tvSetText.md)

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