John,
Yes, it should work Try
CREATE CURSOR test ( code M)
INSERT INTO test VALUES ([x=VERSION()] + CHR(13) + CHR(10) + [WAIT WINDOW x])
EXECSCRIPT(test.code)
Are you sure that there're no errors in the stored code? Copy it to .PRG and try to compile.
>I am trying to use ExecScript for the first time. I have a table called "AutoLog" with a memo field called "JCode". As a test, the JCode memo field simply contains the command return.
>
>When I execute this line:
> =ExecScript(AutoLog.JCode)
>I get a "Syntax Error".
>
>When I execute this line:
> =ExecScript("AutoLog.JCode")
>I get "Object AutoLog is not found".
>The AutoLog table is open in the current work area.
>
>What is the correct way to use this function?
--sb--