|InfoPath Developer Reference|
Version Added: InfoPath 2003
expression An expression that returns a View object.
|bstrName||Required||String||The name of the view to switch to. If an empty string is used, the default view is displayed.|
If an empty string is used as the
Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
In the following example, the SwitchView method of the View object is used to change the current view to the default view: