FormFieldSetText

Description

Sets the display text for a form field. The type of the form field may be FormFieldCheckBox, FormFieldComboBox, FormFieldText, and FormFieldDate.

Applies to

RichTextEdit control

Syntax

rtename.FormFieldSetText(integer fieldID, string text)

Argument

Description

fieldID

The unique ID assigned to the form field.

text The text to display for the form field.

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 display text for the form field (field ID: 14) to "Thanks for your input!".

integer li_rtn
li_rtn = rte_1.FormFieldSetText(14, "Thanks for your input!")