Destroys a form, that is removes it from the screen. Use this function (from an event) to close a form.
The form handle, returned from the FormNew() function. The form handle identifies the table where all data on the associated form is stored.
0 (zero) if successful, otherwise an error is returned.
/* Display message to the operator. If after 10 seconds the operator has not selected OK, then destroy the form. */
FormPrompt(1,1,"Something bad has happened");
! Wait 10 seconds.
IF FormActive(hForm) THEN
! Destroy form.