# FieldData Property

> Relates a Long value or a string to the marked text field with the given FieldId; zero or an empty string deletes the data previously stored with the field.

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

---

This property relates numeric or string data to a marked text field.

### Syntax

```vbscript
TXTextControl.FieldData(FieldId) [= Data]
```

### Parameters

| Parameter | Description |
|---|---|
| FieldId | Identifies the field that is to be manipulated. |

### 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 marked text field.

### See Also

- [Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/llms-full.txt)
- [FieldInsert Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldinsert-method/llms-full.txt)
- [Programming Category: Text Fields](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/text-fields/llms-full.txt)

---

## Nearby

- **Previous:** [FieldCurrent Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldcurrent-property/llms-full.txt)
- **Next:** [FieldDblClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddblclicked-event/llms-full.txt)
