Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Don't see a new class
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Don't see a new class
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01471038
Message ID:
01471038
Views:
303
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
Next
Reply
Map
View

Click here to load this message in the networking platform