Displays the current form (created with the FormNew() function), with all the fields that were added (with the form field functions).
You can display the form and wait for the user to finish entering data by setting the Mode to 0. This mode is the most commonly used, with [OK] and [Cancel] buttons to either save or discard operator entries and to close the form.
To display the form and return before the user has finished, use Mode 1. This mode is used to animate the data on the form or to perform more complex operations.
This function is a blocking function. It will block the calling Cicode task until the operation is complete.
Mode of the form:
0 - Wait for the user.
1 - Do not wait for the user.
0 (zero) if successful, otherwise an error is returned.
! Display the form and wait for the user.
! Display the form and do not wait for the user.
! While the form is displayed, update the time every second.
WHILE FormActive(hForm) DO