TX Text Control ActiveX

FieldNext Method

Method

This method returns the identifier of the marked text field that follows the specified field in the Text Control's current text. It can be used to find the next field in the text or to enumerate all fields.

Syntax

TXTextControl.FieldNext FieldId, FieldGroup

Parameters

ParameterDescription
FieldIdSpecifies a field identifier. If this parameter is zero, the first field's identifier is returned.
FieldGroupThis parameter can be the sum of one or more constants used to separate fields with certain attributes. Valid values are described in the following list. If FieldGroup is zero, the method enumerates all fields.

FieldGroup

ValueDescription
0Returns the identifiers of all fields.
&H1Returns only identifiers of fields which are both changeable and deleteable.
&H2Returns only identifiers of fields which are unchangeable.
&H4Returns only identifiers of fields which are undeleteable.
&H200Returns only identifiers of fields which have the type txFieldExternalLink.
&H400Returns only identifiers of fields which have the type txFieldInternalLink.
&H800Returns only identifiers of fields which have the type txFieldPageNumber.
&H1000Returns only identifiers of fields which have the type txFieldHighlight.
&H2000Returns only identifiers of fields which have the type txFieldTopic.
&H8000Returns only identifiers of fields which have the type txFieldMSWord.
&H10000Returns only identifiers of fields which have the type txFieldHighEdit.
&H20000Returns only identifiers of fields which have the type txFieldAllPages.
&H40000Returns only identifiers of fields which have the type txFieldCheckBox.
&H80000Returns only identifiers of fields which have the type txFieldComboBox.
&H100000Returns only identifiers of fields which have the type txFieldFormText.
&H200000Returns only identifiers of fields which have the type txFieldDate.

Data Types

NameData type
FieldIdInteger
FieldGroupLong
Return valueInteger

See Also