TXTextControl.TXTextControl.FieldCurrent Property

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

Syntax

TXTextControl.FieldCurrent [= FieldId]

Data Types

Integer.

Limitations

Run time only.

Example

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

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

See Also