Hi Cecil;
To turn the things a little more clear, why don't you publ. the code here ?
Claudio
>Hi all,
>
>I have a form in which I check all drives with a for next loop using drivetype()
>to turn off radio buttons for drives not type=2(floppy)
>then it checks for the existance of file on each of the floppy drives
>the init of a listbox displays info if found...
>worked well. Then user wanted to have text file indicating when the disk was created. So added button and edtbox to display this new file. button calls filetostr(cdrive+'filename.txt') display in edtbox. button closes edtbox
>
>Now my problem...EVERY TIME I CLOSE THE FORM I GET (vfp6.exe has performed an illegal operation and will be closed.) error now.
>
>Any Ideas? TIA
>Cecil
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20