Compartir a través de


EXECSCRIPT( ) Function

Enables you to run multiple lines of code from variables, tables, and other text at runtime.

ExecScript(cExpression [, eParameter1, eParameter2, ...])

Parameters

  • cExpression
    Represents the text, a variable, type string, or memo to be executed as code.
  • eParameter1, eParameter2,
    Optional. Specify parameters passed to a script that has a parameter statement in first line.

Return Values

The return value is the value returned by the script in cExpression. If the script returns no value, Visual FoxPro returns .T.

Remarks

ExecScript( ), unlike macro expansion, provides the same effect as selecting several lines of code in the command window then pressing the Enter key.

See Also

COMPILE Command | Handling Run-Time Errors | ON ERROR Command