Equinox Online Help - Language Reference - A to Z

Home

EnableGroup

Applies to
SyntaxEnableGroup GroupExpression [, SwitchExpression]
Action[Statement] Enables or disables a form group.
ScopeOnly usable in form methods.
Notes

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

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

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

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

This example disables the customer group.

EnableGroup "customer", false

The next example enables the order group.

EnableGroup "order"