# FieldCurrent Property

> Returns or sets the identifier of the current marked text field used by the Field properties, methods and events, with an example that changes a field's text.

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

---

Returns or sets the identifier of the current marked text field for the Fieldxxx properties, methods and events.

### Syntax

```vbscript
TXTextControl.FieldCurrent [= FieldId]
```

### Data Types

Integer.

### Examples

The Basic example creates a marked text field with a text content of 'New Field' and afterwards changes the text to 'Hello':

```vbscript
Sub Create()
   Dim FieldId As Integer
   'Create a marked text field and store its number
   TXTextControl.FieldInsert "New Field"
   FieldId = TXTextControl.FieldCurrent
   ..
   'Change the text
   TXTextControl.FieldCurrent = FieldId
   TXTextControl.FieldText = "Hello"
End Sub
```

### Limitations

Run time only.

### See Also

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

---

## Nearby

- **Previous:** [FieldCreated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldcreated-event/llms-full.txt)
- **Next:** [FieldData Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fielddata-property/llms-full.txt)
