>>FYI, _VFP.DoCMD() is roughly five times slower than macro substitution, and EXECSCRIPT() is nearly 800 times slower.
>
>Yeah, I'm guessing DoCmd is just a COM wrapper for "&" and ExecScript() is a wrapper for StrToFile();COMPILE. Hence the hold up.
I think you're right. The following supports your assertion:
LOCAL lc
lc = "Howdy"
=EXECSCRIPT("MESSAGEBOX(lc)")
This gets an error because lc is not in scope- so the function isn't really running in-line, but being called as a subroutine.
Erik Moore
Clientelligence