FormFieldGetText

Description

Gets the text being displayed for a form field. The type of the form field may be FormFieldCheckBox, FormFieldComboBox, FormFieldText, and FormFieldDate.

Applies to

RichTextEdit control

Syntax

rtename.FormFieldGetText(integer fieldID)

Argument

Description

fieldID

The unique ID assigned to the form field.


Return value

Integer.

Returns the display text of the specified form field. 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 gets the display text of the specified form field.

integer li_formid
string ls_rtn,ls_items[]

ls_items[] = {"Test Item1","Test Item2","Test Item3","Test Item4","Test Item5"}
li_formid = rte_1.FormComboBoxInsert(ls_items[],2,false)
ls_rtn = rte_1.FormFieldGetText(li_formid)