Small company logo:
   History
 
Advertising banner:
 
 Form.Swap
Home • Help • Customization Tools • FCAS • Language Reference • Form.Swap
 
Purpose
Hides a form's content and display a second form within the form's original window.
Syntax
Form.Swap (SwapForm)


SwapForm
Any string expression that is a valid form name.
This method allows you to dramatically change the interface in the window without hiding and unhiding fields.
Be sure to make the SwapForm argument a string and not a direct reference to the form object. If the SwapForm argument is a direct reference to the form object, the form's default attribute, Title, will be used as the swap form name.

Example
Form1.Swap("Form2")     'Correct!
Form1.Swap(Form2)       'Incorrect! Passes Form2's title as an argument.