Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine, if a method has some Code?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00793398
Message ID:
00794879
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform