Links are not active on this page.
 Page Object

Creates a page in a PageFrame control.

You can use pages to create tabbed forms or dialog boxes. A page frame contains a set of pages. For additional information about creating pages and page frames, see "Adding Page Frames to a Form" in Controls for Extending Forms.

Page

Expand imageRemarks

You can refer to a page in a page frame by name as in the following example:

 CopyCode imageCopy Code
myFrame.MyPage1

You can also refer to a page by its index number using the PageFrame Pages property. This is consistent with the control collections in other Visual FoxPro containers.

 CopyCode imageCopy Code
myFrame.Pages(2).Enabled = .T.

This index does not necessarily equal the PageOrder property. You might have three pages with PageOrders of 2, 3, and 5. You can refer to these pages as follows:

 CopyCode imageCopy Code
myFrame.Pages(1)
myFrame.Pages(2)
myFrame.Pages(3)

Only the active page is refreshed when the Form Refresh method occurs for the form on which the page is located.

Expand imageSee Also