Great to know! I had always tried MODIFY FILE with files I had previously accessed with MODIFY COMMAND, especially PRG-files!
Hilmar.
>>>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:
>
>
>*- Started VFP6 SP5 w/SET RESO ON
>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
>
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)