Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Definition is not found
Message
De
09/01/2012 11:38:32
 
 
À
09/01/2012 03:11:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01532347
Message ID:
01532514
Vues:
45
>>If you look at the vcx, you will find the different classes in this library, that's what you are supposed to look for. Did you try to follow the steps I have given you?
>
>Yes I did. And I got the exact same results --- including the error message

Very strange...
>
>
>
>>here we have a misunderstanding. What do you call a clone/copy class and what is in your opinion a sub-class?
>
>A clone is an EXACT copy of the original. It is identical in every aspect except the name. It's parent class is the same as the parent class of the class from which it was cloned. It will NOT inherit any changes made to the class from which it was cloned.
If you dont want to inherit than 'nodefault' is your partner
What I did originally is something that I recall seeing recommended here several times and is something I have done successfully in the past.
>
>
>>I dont know of a clone/copy class. But believe you would like to make a copy of a class without inheritance? Why would you want to do that?
>
>We have a class that is sub-classed for each of several actions. A new actions (DMR) has recently been added to the system and it is sufficiently like the MRB action the virtually all of the MRB class should apply to this new action. Not all, but virtually all. If some changes later get made to the MRB class they should NOT be pushed down to the DMR class as well.
again nodefault
We'll wind up modifying the DMR class later in ways that should not be applicable to any of the other action classes.
>
>>
>
>>Even if you create a sub-class with inheritance you can always disable methods with the line
nodefault
>I don't want to go hunting through DMR every time I modify MRB and disable those modifications.
>
>>Also I am not talking about using the menu-bar, just open a class and right click a menu will appear with properties here you should write your code.
>
>>You get the error "Cant find the class" since your class library is not loaded and/or not set in your path.
>
>Then why do any changes I make to any of the other classes in this library work in the application?
>
>
>>Believe me I am not nit-picking at all, just trying to put you on the right track, and for sure the way you are doing it via the command window is not the right track.
>
>We strongly disagree about this. I
I agre we disagree
believe it is more a matter style than right or wrong. Whether I MODI something xxx or File --> Open --> something etc. I get the same result. If I do File --> New --> Class, etc or CREATE CLASS etc. as long as I get the correct result it is a matter of preference rather than right or wrong.
>
>>In my opinion a config.fpw is not the correct place to set the path, better set the path in a special routine which you call first thing when loading your application.
>
>The path is set in a config.fpw file for my development environment. The pathing in the application itself is quite different. When I run the application from withing the development environment the paths are set appropriately for running the application. When the application ends the paths are reset so that I can continue coding.

Look at my path setting procedure: you will see that you can set the path differently in development and executable, just an if...else...endif

Best regards,

Koen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform