: application. The program runs great when it is not called from the
: application but from the command prompt. When I call the program from
: the application, I get a"syntax error."
: I found the when I issue a CLEAR MEMORY or CLEAR ALL command this fixes
: the problem but zaps all the memory variables.
I had a similar problem where attempting to change a private variable at
a lower program level created a "syntax error". (Debugging an old, legacy
What you should do is to make sure your variable scopes are correct.
However, this can be a bit of work.
The quick fix is to save the variables to a file and restore them
when the procedure is done like so:
SAVE TO memfile
CLEAR MEMORY or RELEASE aaa, bbb, ccc
RESTORE FROM memfile