Cicode Programming Reference > Cicode Function Categories > Form Functions Introduction > FormGetText

FormGetText

Gets the current text from a form field. You should call this function only while the form is displayed; for example,, from a field callback function.

Syntax

FormGetText(hForm, hField)

hForm:

The form handle, returned from the FormNew() function. The form handle identifies the table where all data on the associated form is stored.

hField:

The field handle of the field currently selected.

Return Value

The field text (as a string).

Related Functions

FormSetText

Example

FUNCTION Search()
INT hForm,hField;
STRING Recipe;
FormCurr(hForm,hField);
Recipe=FormGetText(hForm,hField);
! Go and find recipe.
..
END

See Also

Form Functions