NEXTFORM formName as string[, CLEAR]
Description
Hide the current form and transfer to another where formName is a string variable containing the name of the form to transfer to. If CLEAR is added to the end of the statement, the form is restored to its design time state, eliminating all changes made to the form including field values, checkbox and choicebox settings, emptying lists and popups, and eliminating any changes to object labels or text. If CLEAR is not specified, the form will retain its values if you return to it using NEXTFORM. The NEXTFORM statement should be the last statement you execute on the current form. Use Global variables to save variables that are shared by more than one form.
Example
Dim form as string
form="ShowMortgageRates"
NextForm form