Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get my class back?
Message
 
 
À
10/11/2004 13:21:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00960141
Message ID:
00960163
Vues:
12
As long as you did not "cleanup" the classlib, you can undelete the 2 records in the ClassLib VCX table.

SET DELETED OFF
USE MyClassLib.VCX
BROWSE

Look for deleted pairs of records, and undelete the pair that made up that class. Close the table.

Since you have re-added this class name, you should RENAME that class first. Once you sucessfully undelete the original class, then delete the RENAMED class.

>While goofing with my "Classes" tab on the project form I accidentally disappeared one of my classes (i.e. part of a class lib). This class is AddObject-ed to a form at run-time. When I run the form I get:
>
> "Class definition cboZoneList not found"
>
>Now I went to a backup, found the class OK. Then I went to my "live" class lib and created a new class, of the same name, based on the backup class.
>
>I initially have the class in a grid (it's a drop-down combo to select an item to be placed in each cell of a column), it's justr that as I refresh the cursor in the grid I have to programmatically reinstate everything. I can see, touch, look at the prop's etc. of the class but, when I run the form, I get the message again:
>
> "Class definition cboZoneList not found"
>
>Grrr! What can I do?
>
>'ppreciate it
>
>Terry
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform