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:
00793800
Views:
29
Alexander,

You can pass a classname to PEMStatus(,,4) to see if the method is overridden at the class level. You can traverse the inheritance hierarchy at runtime you'll need to use the GetPEM().

ox = createobject( "leveltwo" )
? ox.ParentClass && levelone
? getpem( ox.ParentClass, "ParentClass" ) && container
? pemstatus( getpem( ox.ParentClass, "ParentClass" ), "methodname", 4 )

>>try PEMSTATUS(oObjectName , cMethod, 6)
>
>No, that won't help: I'm not interested, if the method is inherited or not, I'm interested, if the method of the object contains some "own" code not defined in the same method of the object's class.
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