Kbase P8485: How to define a parameter in the definition of an alias (cod
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/22/2003 |
|
Status: Unverified
GOAL:
How to define a parameter in the definition of an alias (code alias)
FIX:
The aliases are defined in Option menu->Editing Options...->Alias... button
in the AppBuilder and Procedure Editor menu bar.
An alias is a "shortcut" to a command.
There are some predefined aliases as i.e.:
alias: MES
command: MESSAGE %\c
%\iVIEW-AS ALERT-BOX INFO BUTTONS OK.
then when you type MES in the procedure or section editor and press spacebar MES is changed for the command MESSAGE... speeding up the coding.
It is possible to define your own alias, and these can contain parameters that are decided at "run-time" when coding. When you type the alias in the procedure/section editor a window appears and let you enter a parameter that will be added to the command.
These parameters are defined in the parameters section of the alias.
And in the definition of the alias (definition of the command) to visualize the parameter it is necessary to use %(<parameter>).
Reference to written documentation:
Progress AppBuilder Developer's Guide.
Chapter 2 Appbuilder Interface.
2.5 Setting your preferences.
2.5.2 Section Editor Preference Options: