## Using switch and case to simulate a tab-view.

This view is only displayed when tab 1 is selected.
This view is only displayed when tab 1 is selected.
This view is only displayed when tab 1 is selected.
This view is only displayed when tab 1 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 3 is selected.
This view is only displayed when tab 3 is selected.
This view is only displayed when tab 3 is selected.
This view is only displayed when tab 3 is selected.

This XForms example shows how the switch and case statements can be used to simulate a multi-part form with a row of horizontal tabs at the top of the form. Background colors are used to show which tab is the currently selected tab.