Progress
Debugger Guide
Specifying Macro and Button Definitions
You can define both macros and buttons in much the same way, using the MACRO and BUTTON commands, as shown in the following syntax description:
identifier
The name of your macro or the label for your button. Both macro names and button labels are case sensitive. You cannot specify a Debugger command name as a macro name, but you can specify a Debugger command name as a button label. (That is, you cannot redefine a Debugger command as a macro, but you can label a button with a command name.) You can also enclose button labels in double quotes ( “. . .” ) to embed spaces anywhere in the label. If identifier specifies a previously defined macro name or button label, the current macro or button definition replaces the previous one.
command
Specifies any previously defined macro or Debugger command, except the MACRO or BUTTON commands themselves. (That is, you cannot define a new macro or button inside another macro or button definition.) The entire macro or button definition must be entered on one line. When you specify a previously defined macro in a new macro or button definition, the Debugger immediately replaces the previously defined macro with its component commands so that its definition becomes part of the new macro or button definition.
Immediately after you define a macro, it is available as a command or to include in other macro or button definitions. Immediately after you define a button, the Debugger visibly places the button in the last available place in the button panel, making it available for use.
Most macro and button definitions are relatively simple. For example, this command defines a macro and a button for the HELP command:
However, several Debugger commands take parameters such as procedure names and line numbers. You can specify these parameters in both macro and button definitions using the Debugger variables listed in Table 5–5. When used in buttons, these variables take their values from the listing panel in the Debugger window; when used in macros, their values depend on whether the macro is used as a command or as part of a button definition.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |