Difference between revisions of "ALIAS"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) (→Products) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Define a User Defined Command (UDC) | Define a User Defined Command (UDC) | ||
Line 34: | Line 30: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital Server, Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Applications Commands]] | [[Category:Applications Commands]] |
Latest revision as of 13:59, 10 November 2009
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 Server, Recital