>>>When I close a form code window VFP 5.0a performs a syntax check. If it finds an error it pops up a window with the options "Cancel, Ignore, Ignore All". Quite often selecting any option causes VFP to bomb with an Internal Consistency Error. I then lose all the changes I have made to the form since the last save. Has any one else seen this problem, and if so is there any way to fix it.
>>>
>>>Thank you in advance for your help.
>>
>>
>>Delete your resource file (FOXUSER.*).
>
>
>Is there a way to delete the FoxUser file as the application (EXE) boots? I'm thinking about making a BAT file for the user's desktop to do this and subsequently boot the app, but... is there a way from within VFP?
>
>--Greg
Set Resource off && close the resource file
erase (Set("resource",1)) && erase it
This doesn't erase foxuser.fpt, you may have to add a few lines to do that too. I think there's a better way - why not save a good Foxuser file into a spare .dbf, and then, in cases when foxuser is damaged
Set Resource off && close the resource file
erase (Set("resource",1)) && erase it
use SpareFoxuser
copy to (Set("resource",1))
Use
Set Resource On
This way you don't have to rebuild all the settings which were saved in the resource file - just those which were added after the last save.