Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Don't see a new class
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Don't see a new class
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01471038
Message ID:
01471038
Vues:
302
UPDATE. Found the problem. I've created this class in the new classlibrary named the same as original but in the wrong directory. All is well now.


Hi everybody,

I've created a new class in the existing classlibrary by writing this command in command window

create class myClass ....

Then I hacked the form, switched to my class and then try to run it. I got a message that class doesn't exist. I closed the form, went to the project, found the class (as I thought) and found that it was named Prefix_treeForm. I renamed it to Prefix_TreeView (the name of this new class). I then opened it and found it was a wrong class (not the one I just created). I renamed it back to the original name.

Now I was thinking I lost my classcthus I repeated the CREATE CLASS command and it asked me "The class already exists, do you want to overwrite?'. I answered 'No' and it opened my new class.

So, now I have

Prefix_TreeForm

and

Prefix_TreeViewForm -- this is my new class

However, I still don't see this class in the classlibrary in the Project. So, it's a phantom class! I can view it with MODIFY CLASS, but I don't see it in the Project.

Do you know what can I do? How can I see this class and does it exist or not?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform