# TargetData Property

> Relates a Long value or a string to a link target given by the identifier from TargetInsert; zero or an empty string deletes the related data.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TargetData Property
- **180 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdata-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdata-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdata-property/llms-full.txt

---

This property relates numeric or string data to a link target.

Introduced: 28.0.

### Syntax

```vbscript
TXTextControl.TargetData(TargetId) [= Data]
```

### Parameters

| Parameter | Description |
|---|---|
| TargetId | Specifies the target's unique identifier. This must be the value returned from the [TargetInsert](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetinsert-method/llms-full.txt) method. |

### Data Types

Long or String.

### Limitations

Run time only.

### Remarks

The specified data can be a long value or a character string. A long value of zero or an empty string deletes all data previously related to the specified target.

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [Programming Category: Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/hypertext-links/llms-full.txt)

---

## Nearby

- **Previous:** [TargetCreated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetcreated-event/llms-full.txt)
- **Next:** [TargetDelete Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/targetdelete-method/llms-full.txt)
