version 2004.3 (Modified)
GOTO PAGE (pageNumber)
Parameter | Type | Description | |
pageNumber | Number | Form page to display |
Description
GOTO PAGE changes the currently displayed form page to the form page specified by pageNumber.
If no form is displayed or if pageNumber corresponds to the current page of the form, GOTO PAGE does nothing. If pageNumber is greater than the number of pages, the last page is displayed. If pageNumber is less than one, the first page is displayed.
About form page management commands
Automatic action buttons perform the same tasks as the FIRST PAGE, LAST PAGE, NEXT PAGE, PREVIOUS PAGE and GOTO PAGE commands that you can apply to objects such as tab controls, drop-down list boxes, and so on. Whenever appropriate, use automatic action buttons instead of commands.
Page commands can be used with input forms or with forms displayed in dialogs. Output forms use only the first page. A form always has at least one pagethe first page. Remember that regardless of the number of pages a form has, only one form method exists for each form.
Use the Current form page command to find out which page is being displayed.
Note: When designing a form, you can work with pages 1 through X, as well as with page 0, in which you put objects that will appear in all of the pages. When using a form, and therefore when calling page commands, you work with pages 1 through X; page 0 is automatically combined with the page being displayed.
Example
The following example is an object method for a button. It displays a specific page, page 3:
GOTO PAGE (3)
See Also
Current form page, FIRST PAGE, LAST PAGE, NEXT PAGE, PREVIOUS PAGE.