Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine, if a method has some Code?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00793398
Message ID:
00794879
Vues:
12
Bhavbhuti,

Your class documentation should detail what the subclass must do.

You could write a VFP parser and make sure there is an executable line of code, but even that won't know if it's actually doing anything or the right thing.

I think you don't have to worry about it, if the user of your class doesn't provide correct implementation the class simply isn't going to work and that's really more their problem than it is yours. The class warns them if they've forgotten to provide the implementation.

>This works great thanks. Now what if a requirement arises that MyMethod needs to have code in the MyAbstractClass, this I tried but the same code will say alls okay even if I have a comment in MyAbstractClass.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform