Progress
Debugger Guide
BUTTON Command
Creates a button in the Debugger button panel.
SYNTAX
PARAMETERS
label
A quoted or unquoted string to display as a button label. Both quoted and unquoted labels are case sensitive. If you want blanks embedded in the label, you must quote it.
button-definition
One or more Debugger commands or defined macros separated by semicolons (;).
NOTES
EXAMPLES
- If label specifies an existing button, button-definition redefines the button.
- If the definition specified by button-definition contains macros, the Debugger immediately replaces each macro (and each macro within a macro) with its definition in the button definition. Thus, because a button definition is stored only in terms of Debugger commands, you cannot specify an undefined macro in the button definition.
- The Debugger adds new button definitions to the right end of the current set of buttons in the button panel. If the button panel is too small to accommodate a new button definition, you must resize or scroll the button panel to see the new button.
- When you choose a button from the Debugger button panel, the Debugger commands in the button definition are entered together as one command in the Debugger command queue. They echo on a single line in the command panel when executed.
- You can include single-valued Debugger variables to substitute parameters within a button definition. The values of these variables are set from the Debugger listing panel when you choose the button, as listed in Table A–1.
This example defines a button in the Debugger button panel:
This example defines a button using one Debugger variable that specifies the filename for two commands:
SEE ALSO
CANCEL ALL Command, CANCEL BUTTON Command, MACRO Command, SHOW BUTTONS Command
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |