|
ScriptRun() 
Run (execute) a CAPITAL script from within a
script or an area of CAPITAL that supports scripting
instructions.
Syntax
ScriptRun(<cFile|cScript>)) -->
lExecuted
Arguments
<cFile> --> is a .MAC file that must
exist in a location accessible to CAPITAL. If the extension ".MAC"
is found in the string or variable passed to ScriptRun() then
CAPITAL attempts to locate, load, and execute the contents of this
file.
<cScript> --> You may pass a string
variable containing a script directly to the ScriptRun() function
for execution.
Returns
ScriptRun() returns TRUE if the script was
successfully executed, otherwise FALSE. If the file referring to
the script does not exist or an error was found in the executed
script, FALSE is returned.
Description
This function executes a script from within a
script or area of CAPITAL where the return value from a script may
be used.
Example
ScriptRun("f:\capital\myscript.mac")
____________________________
Related Topics
Business Function List
Shell()
|