TXTextControl.FieldGoto Method

Sets the current input position to the beginning of the specified marked text field and scrolls the text so that this position is at the top of the control's visible text.

Syntax

TXTextControl.FieldGoto FieldType, FieldId
Parameter Description
FieldType

Specifies the type of the marked text field. See the Constants section of the FieldType property for valid values.

FieldId

Identifies the text field to which should be scrolled. It must be a valid field identifier. For fields of the type txFieldTopic this parameter can also be a valid topic number.

Return Value

If the field could be found the method returns True, otherwise it returns False.

Data Types

FieldType:    Integer
FieldId:    Integer
Return value:    Boolean

See Also