>I have some code running in a dll, the code looks like this:
>
>
>Local lcSql
>Text To lcSql NoShow
> *-- Long Sql statement
> Select ..... From .....
> ...
>EndText
>
>
>In the destroy event of my dll i get: Error 1705 File access denied. The file is sometimes C:\WINNT\system32\OFF.TXT. Or sometimes it's C:\WINNT\system32\ON.TXT.
>
>After it releases the file ON.TXT, i looked in it and it contained the sql statement of the text to command...
>
>ON OFF!!??? This must be some VFP internal set command
>
>This is insane!!! Anyone?? Before i go insane myself.
Looking at the help... and issuing a WAG - try to FOPEN/FCREATE your own file and assign the file handle to the _TEXT system variable.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown