Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Damaged scx
Message
From
09/08/2000 10:27:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00402775
Message ID:
00402786
Views:
8
>I was booted out of my system last night with a bsod and when I came back this morning I can't open the form I was working on.
>
>If I say 'use myform.scx in 0', VFP says 'not a table'.
>
>Am I out of luck?


You might have some luck. It's generally reccount() info in header that gets corrupted.
* You might need to enter fullpath for myform
do home()+'tools\hexedit\hexedit' with 'myform.scx'

Get size from window - say lnSize.

lnRecords = (lnSize-1033)/109

Now read positions 4-7 in hexedit window (first row). You should read it as hex and from right to left. Say there is 01 02 03 04 there. You would goto command window and :
? 0x04030201
To get recordded reccount(). If it's different from what you have in lnRecords then you're in good shape. Convert lnRecords to hex notation :
? transform(lnRecords,'@0')
Write what you get from right to left to positions 4-7 and save edits.
PS: Absolutely do this with a copy.1033 is headersize and 109 recsize for scx.
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