FormFieldSetCurrent

Description

Sets a form field as current. The type of the form field may be FormFieldCheckBox, FormFieldComboBox, FormFieldText, and FormFieldDate.

Applies to

RichTextEdit control

Syntax

rtename.FormFieldSetCurrent(integer fieldID)

Argument

Description

fieldID

The ID assigned to the form field that shall be set as current.


Return value

Integer.

Returns 1 if it succeeds. Returns -1 if an error occurs. Returns -2 if the fieldID is non-existent, illegal, or not of the required type. If any argument's value is null, returns null.

Examples

This example sets the form field (field ID: 16) as current. As the result, the text input position goes to the field.

integer li_rtn
li_rtn = rte_1.FormFieldSetCurrent(14)