Difference between revisions of "ALIAS"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
=ALIAS=
 
 
 
 
==Class==
 
==Class==
 
Applications
 
Applications
Line 15: Line 12:
  
 
==See Also==
 
==See Also==
[[!]], [[FUNCTION]], [[KEYWORD]], [[RUN]], [[SPAWN]]
+
[[!]], [[!!]], [[FUNCTION]], [[KEYWORD]], [[RUN]], [[RUN()]], [[SPAWN]]
  
  

Revision as of 10:37, 27 April 2009

Class

Applications


Purpose

Define a User Defined Command (UDC)


Syntax

ALIAS [<expC> [<command>]]


See Also

!, !!, FUNCTION, KEYWORD, RUN, RUN(), SPAWN


Description

The ALIAS command allows for the definition of User Defined Commands (UDCs). The ALIAS command, on its own, causes all active UDCs to be listed.

<expC>

The <expC> is the name to call the user-defined command. The ALIAS <expC> without a subsequent <command> statement removes that UDC.

<command>

The <command> character expression can contain multiple Recital/4GL commands, each separated with a ';'. Up to nine parameters may be substituted by preceding the parameter number with a '%' character, e.g. %1 %2 etc. Parameter %0 matches the complete line following the command name.


Example

alias lm "list memory" && defines lm
alias lo "list off"
alias l "list off for ord_id = [%1]"


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer