# FieldTypeData Property

> Sets or returns the data of a special field type: link targets, page number start and format (Arabic, letters, Roman), highlight color, topic, Word field code.

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

---

This property sets or returns the data that belongs to a marked text field of a special type. The chapter [Special Types of Marked Text Fields](https://docs.textcontrol.com/tx-text-control-activex/document-editor/fields/special-types/llms-full.txt) informs about all the types and the data belonging to these types.

### Syntax

```vbscript
TXTextControl.FieldTypeData(FieldId) [= TypeData]
```

### Parameters

| Parameter | Description |
|---|---|
| FieldId | Identifies the field that is to be manipulated. The specified data can be a long value or a character string depending on the type of the field. For the different field types the corresponding data are listed in the following Constants section. |

### Constants

The following lists the possible data for each type of field. The corresponding data type is listed in Data Types:

| Constant | Description |
|---|---|
| txFieldExternalLink (1) | Defines the external location to where the link points. |
| txFieldInternalLink (2) | Defines the location in the same document to where the link points. |
| txFieldPageNumber (3) | Defines the starting number and the number format. To display the number in a certain format the following constants can be added to the starting number: |
| txFieldHighlight (5) | Defines the color of the highlight. |
| txFieldTopic (6) | Defines the number of the topic. |
| txFieldMSWord (7) | Defines the type name and parameters of a Microsoft Word field as a sequence of strings, separated through TAB (9) characters. The first string specifies the type name of the field (for example: MERGEFIELD). The following strings are the field's parameters which can be arguments and switches. Each switch begins with a backslash. |
| txFieldHighEdit (8) | Defines the name and parameters of the Heiler Highedit field as a sequence of strings, separated through TAB (9) characters. |
| txFieldAllPages (9) | Defines the number format. It can be one of the following constants: |

#### txFieldPageNumber (3)

| Constant | Description |
|---|---|
| &H30000 | Pages are numbered with Arabic numbers (1, 2, 3, ...). |
| &H40000 | Pages are numbered with small letters (a, b, c, ...). |
| &H50000 | Pages are numbered with capital letters (A, B, C, ...). |
| &H60000 | Pages are numbered with Roman numbers (I, II, III, ...). |
| &H70000 | Pages are numbered with small Roman numbers (i, ii, iii, ...). |

#### txFieldAllPages (9)

| Constant | Description |
|---|---|
| &H30000 | The number of pages is shown with an Arabic number (1, 2, 3, ...). |
| &H40000 | The number of pages is shown with a small letter (a, b, c, ...). |
| &H50000 | The number of pages is shown with a capital letter (A, B, C, ...). |
| &H60000 | The number of pages is shown with a Roman number (I, II, III, ...). |
| &H70000 | The number of pages is shown with a small Roman number (i, ii, iii, ...). |

### Data Types

| Name | Data type |
|---|---|
| FieldId | Integer |
| txFieldExternalLink | String |
| txFieldInternalLink | String |
| txFieldPageNumber | Long |
| txFieldHighlight | Long |
| txFieldTopic | Long |
| txFieldMSWord | String |
| txFieldHighEdit | String |
| txFieldAllPages | Long |

### Examples

The following example numbers pages with Roman numbers starting with number 5:

```vbscript
TXTextControl1.FieldType(1) = 3
TXTextControl1.FieldTypeData(1) = 5 + &H60000
```

### Limitations

Run time only.

### Remarks

The use of this property is only valid if the matching field type has been previously set with the FieldType property.

### 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)
- [FieldLinkClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldlinkclicked-event/llms-full.txt)
- [Programming Category: Hypertext Links](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/hypertext-links/llms-full.txt)

---

## Nearby

- **Previous:** [FieldType Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldtype-property/llms-full.txt)
- **Next:** [Find Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/find-method/llms-full.txt)
