Equinox Online Help - Language Reference - A to Z

Home

EnablePage

Applies to
SyntaxEnablePage PageExpression [, SwitchExpression]
Action[Statement] Enables or disables a form page
ScopeOnly usable in form methods.
Notes

You can use this statement to disable and re-enable, a form page. PageExpression is the object name of the page. SwitchExpression is either True or False.

If SwitchExpression is False, the page is disabled. You cannot select it using the keyboard, menu bar, mouse, or ChangePage statement. You re-enable the page by using this statement again and supplying SwitchExpression as True. If SwitchExpression is omitted, it defaults to True. Note that all form pages are initially enabled.

If the page cannot be found, an error number is stored in the system workarea SysError. Note that you cannot disable the current page.

CategoryForms
See Also ChangeEditLine, ChangeGroup, ChangeObject, ChangePage, CurrentEventName, CurrentGroupName, CurrentObjectName, CurrentPageName, DefaultHelp, EnableGroup, Get, IsPageScroll, NextObjectName, Set, SetDefaultHelp, SetEquinoxTitle, SetPageScroll, SetPageTitle, ShowPage
Example

This example enables the second page of the Customer group, selects it and then disables the first page.

EnablePage "Customer2"
ChangePage "Customer2"
EnablePage "Customer1", False