Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method code disappearing
Message
De
30/07/1998 14:33:40
 
 
À
30/07/1998 09:52:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00122400
Message ID:
00122792
Vues:
19
>>I have a pgfBase class with code inside several methods (some mine, some native). When I run a form that uses that class, then go back to modify the class the code is missing from the methods (my methods are still there - just blank). All properties still have my settings.
>>
>>If I exit without saving, and re-start the VFP5.0a session, the code has returned,
>>but
>>if I save any changes the code is gone for good.
>>
>>I'm guessing that somehow some sort of memo file is being disconnected from the main file, but only for the one class. All other classes in that vcx file appear to be fine.
>>
>>
>>Any ideas?
>>
>>TIA
>
>Bill -
>
>Your question is timely because I had this very thing happen to me last weekend after I'd spent a day furiously modifying some custom method code in the class, then went back to make some other change (to be honest I can't remember exactly what - I think I may have changed a name or pointer to a parent class and that probably broke the link), then at some point, poof! My method code had disappeared. I routinely recompile my classes after making any sort of change, so recompiling didn't (as far as I know) either cause or prevent the problem. I thought I was doomed, but decided to check the .vcx file to see if the code might be lurking around. Fortunately for me it was still sitting there intact in one of the fields, even though I couldn't see it when I looked at it in the class designer. I copied that code and then pasted it back into the class methods inside the class designer and then recompiled again. I wrote a note to myself to do some tests to see exactly what changes seem to
>cause this.
>
>This doesn't really answer your question, but just wanted to share my experience for what it's worth.
>
>Sylvia

I'm always lucky, because I have 3 days worth of backups. I just cut and paste from an earlier version. I'll try your method next, to see which is easier. You might note that I discovered that just restarting VFP5.0a let my method code show up again (as long as I haven't saved the class while the code was "invisible" in which case it was gone for good).
Bill Morris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform