TextFieldGetType

Description

Gets the type of the specified text field in a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

rtename.TextFieldGetType (integer id)

Argument

Description

rtename

The name of the RichTextEdit control in which you want to get the type of the specified text field

id

The ID of the text field you want to obtain


Return value

String.

Returns the following strings if it succeeds and an empty string ("") if an error occurs. If the id argument is null, returns null.

standard -- The standard text type.

externallink -- The external link.

internallink -- The internal link.

Examples

This example inserts a text field (with a text value "Test") and gets the type through the ID of the text field in the RichTextEdit rte_1:

string ls_type
integer li_id

li_id =  rte_1.TextFieldInsert("Test")
ls_type = rte_1.TextFieldGetType (li_id)
MessageBox("TextFieldGetType",ls_type)

See also

TextFieldSetTypeAndData

TextFieldGetTypeData