EXEC()

From Recital Documentation Wiki
Revision as of 15:56, 23 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Class

Applications


Purpose

Function to execute a list of commands


Syntax

EXEC(<expC1> [,<expC2>...])


See Also

ALIAS, DO, EXECSCRIPT(), KEYWORD, RUN, RUN(), SPAWN,

Description

The EXEC() function executes a list of commands. Each command is specified by <expC1>, <expC2>, and so on. This function is useful for consolidating command lines in UDCs (User Defined Commands) which have been defined with the ALIAS command. The EXEC() function returns a logical true (.T.) if all the specified commands execute without error, or a logical false (.F.) if an error occurs.


Example

alias lf;
"iif(run('ls –l %1 > run.tmp') = 0,;
exec('textedit([run.tmp],0,0,20,79,.f.,[FILE LISTING])','erase run.tmp'), .F.)"
 
lf


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer