Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Corrupt Class Library
Message
From
04/11/1999 05:00:37
 
 
To
03/11/1999 13:47:54
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00286238
Message ID:
00286730
Views:
34
Hello again Doug

>Have you tried fixing the class problem by opening the corrupted VCX as a table (USE WHATEVER.VCX), copying
>the records for the class (including the COMMENT record) to another VCX (COPY NEXT 2 TO MYBASE.VCX, for
>example), and then using that VCX rather than the original?


hmmm...

tried to copy the class as you suggested. First problem was that the comment line wasn't the next record in the vcx file. Had to set a filter for 'objname=classname' and copy these to a file, then append them to the new class library. Don't think that had much of a chance from the start. For comparison purposes I had started up a new library into which I had created a new class 'based on' the one I was trying to transfer. I appended the copies to this library. I was able to open the 'based on' class but not the appended one. The error message told me that the appended one had an invalid parent class name.

I went through every field in both 'based on' and 'appended' classes and their comment records. There were a number of differences but I couldn't even begin to guess which ones mattered or how to 'correct' them.

I also noticed that if you just use the 'copy to mybase.vcx' the resulting library is invalid and lacks a first record (which only has one occupied field - Reserved 1='Version = 3.0')

Can anyone point me to an explanation of the structure of the vcx files, what the 'COMMENT' records do etc etc?

Does it matter that a comment record isn't immediately next to the class record its supposed to be commenting on?

Is that whats causing the reported 'invalid class library' problem in the first place?

Is there a way to fix it?

Harry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform