Difference between revisions of "ALIAS"

From Recital Documentation Wiki
Jump to: navigation, search
Line 37: Line 37:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Applications]]
 +
[[Category:Applications Commands]]

Revision as of 12:03, 4 June 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