Previous Topic: CLOSE Statement for ErrorsNext Topic: DISABLE Statement for a Push Button


DISABLE and ENABLE Statements

The DISABLE statement causes a menu item or push button to be disabled, which means it cannot be clicked on. The menu item or push button is disabled until its command is enabled using the Enable statement or the window/dialog box is closed.

CA Gen allows menu items and push buttons to be disabled. This feature should be used when possible to simplify procedure logic. However, when program control is desired, use the Disable command instead. The next section shows an example.