Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect corrupt FoxUser.dbf?
Message
From
22/09/2003 10:36:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00831092
Message ID:
00831095
Views:
16
>Is there a way in an applications startup procedure to "gracefully" detect if the FoxUser.dbf/fpt is corrupt?
>Am working with vfp 7.1 & Win XP Home.
>Would like to add logic at startup time so that if the FoxUser.dbf/fpt is corrupt would delete the table & let the system create a new Foxuser.dbf/fpt.
>One additional wrinkle is that I change the name of each FoxUser.dbf/fpt to a unique name for that app to avoid conflicts with other fp apps that may be on the same pc. Therefore, after letting the system re-create the FoxUser.dbf/fpt I would need the code to rename that table to the name I'm using for that app.
>All help appreciated.
>Bill Wright
Bill,

Do you really use the resource file in your app ? If not simply have :
resource=off
line in your config.fpw. If you do :
resource=filename
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform