Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.scx File Corruption
Message
 
To
08/06/1998 13:33:28
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00105877
Message ID:
00105945
Views:
48
>>>>I'm assuming that you received this message in FPW 2.6. There are two possible causes, one being that the header is corrupted and the other being that the number of records in the header doesn't match the number of physicla records. Try opening the screen as a table in VFP 5.0. If you can open it, the it means that the latter is the problem. In this instance, simply copy the screen file back from VFP as type FOX2X. If you can't the header has become corrupted. In this case, a product like Refox can regenerate the screen from the generated source code.
>>>>
>>>>hth,
>>>
>>>George,
>>>
>>>Thanks for the response. I can open the screen in VFP 5.0 but I can't find the option to copy it back to FOX2X. Is it a "Save As..." type?
>>>
>>>tia.
>>
>>You can't convert it back (at least not without modifying the table itself). I was speaking of opening the scx file as a table (see above), then using the COPY TO..TYPE FOX2X to copy it back.
>
>
>I was able to copy the file successfully but I keep getting a program error when I try to run the screen. I can open the .scx file as a table but not a screen in fpw 2.6.

If you don't use the COPY TO...TYPE FOX2X, you won't fix the problem, which is that the heder is out of line with the total number of records. If screens work the same way reports do, you can specify an SCX extension and VFp will give the memo file the necessary SCT extension. BTW, look for some records with junk in some of the fields, and mark them for deletion and pack the table. Of course, back up is critical.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform