>>FYI, MODIFY FILE will eliminate the syntax highlighting while keeping you within VFP.
>
>I've seen this tip before, but it doesn't work with me: I get S.H. all the same. Perhaps this was considered a bug, and corrected in later versions of VFP. I am using VFP 6, SP5.
I believe this is due to some info being saved in the resource file, because I did this in the Command Window:
lcText = [FUNCTION MyUDF()] + CHR(13)+CHR(10)+[RETURN "Hello"]
STRTOFILE(lcText, "TestSH.prg")
modi comm testsh
modi file testsh.prg
set reso off
modi file testsh.prg
"Problems cannot be solved at the same level of awareness that created them." - Albert Einstein
Bruce Allen
NTX Data