Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - Class to know that a given method code is emp
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00794369
Message ID:
00795079
Vues:
12
Yes Barbara. That is what I wanted. Please see David's response in this thread and a similar thread.

Now that I have the solution, I got another idea, what if this method, though a template method, does have it's own code and yet needs complimentary code including dodefault() in the subclass? <g>

>>Hi all
>>
>>I have this combo class which has a method I have created. This method needs to be populated come hat may, else the thing won't work.
>>
>>How to warn me at design/run time that the required method is empty.
>
>Are you saying that your class has a template method that must have code in the subclass? If so, put a messagebox() in the template method that says something like, "You must put the appropriate code in this class". When they override the method by putting code in the sublcass, your messagebox won't appear.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform