Suppose a form displays status information about an account on page 1, and background information on page 2, with a TabBox to choose pages. Clicking the Add button switches the form to page 2 so the user can add the data for the new account. By setting the curSel of the tabbox, the tabbox is updated, and onSelChange for the tabbbox changes the pageno of the form.

function addButton_onClick()

   form.rowset.beginAppend() 

   form.pageTabbox.curSel := 2 

See the example for onSelChange for the tabbox’s onSelChange event handler.