Page Object

Creates a page in a page frame.

Page

Remarks

Pages allow you to create tabbed forms or dialogs. A set of pages is contained in a page frame.

You can refer to a page within a page frame by name as in this example:

myFrame.MyPage1

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

myFrame.PAGES(2).Enabled = .T.

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

myFrame.PAGES(1)
myFrame.PAGES(2)
myFrame.PAGES(3)

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

For additional information about creating pages and page frames, see "Adding Page Frames to a Form" in Extending Forms.

See Also

Page Object Properties, Methods and Events | CREATE FORM | CREATE CLASS | DEFINE CLASS | PageFrame Control