Difference between revisions of "EXEC()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to execute a list of commands | Function to execute a list of commands | ||
− | |||
==Syntax== | ==Syntax== | ||
− | EXEC(<expC1> [,<expC2>...]) | + | EXEC(<expC1> [, <expC2> ...]) |
− | + | ||
==See Also== | ==See Also== | ||
− | + | [[DO]], [[EXECJAVASCRIPT()]], [[EXECPHP()]], [[EXECPYTHON()]], [[EXECSCRIPT()]], [[SPAWN]] | |
==Description== | ==Description== | ||
− | The EXEC() function executes a list of commands. Each command is specified by <expC1>, <expC2>, and so on | + | The EXEC() function executes a list of commands. Each command is specified by <expC1>, <expC2>, and so on. 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== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | ? exec("open database southwind","use example","browse") | |
− | + | ||
− | exec( | + | |
− | + | ||
− | + | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 11:16, 12 December 2012
Contents
Purpose
Function to execute a list of commands
Syntax
EXEC(<expC1> [, <expC2> ...])
See Also
DO, EXECJAVASCRIPT(), EXECPHP(), EXECPYTHON(), EXECSCRIPT(), SPAWN
Description
The EXEC() function executes a list of commands. Each command is specified by <expC1>, <expC2>, and so on. 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
? exec("open database southwind","use example","browse")