Share via


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

Remarks

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

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.

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:

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.

See Also

Reference

Page Object Properties, Methods, and Events

CREATE FORM Command

CREATE CLASS Command

DEFINE CLASS Command

PageFrame Control

Other Resources

Objects, Collections, and Classes