Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there code in that method?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01124052
Message ID:
01124197
Views:
12
>I'm probably forgetting the obvious, however I'm trying to determine if there is code in a method at runtime. I can use PEMSTATUS to see if the method has changed and find out if there is any code in the object's method, but if there is code in the method of the parent class, PEMSTATUS won't tell me this. I just need to know if there is any code associated with the method anywhere in the hierarchy. I was thinking there was a function to tell you this, but can't think of the name if there is one and the search terms I used in the help file didn't seem to turn up what I wanted.
>
>Any suggestions would be appreciated.
>
>Russell Campbell

PEMSTATUS(,,0|1) don't support methods.

At design time, without nodebug
x=CREATEOBJECT("c12")
clear
FOR k=1 TO ACLASS(acx,x)
	? k,acx[k],GETPEM(acx[k],"Init")
next
MESSAGEBOX(_VFP.StartMode,"Lunax")

DEFINE CLASS c1 as Custom
	PROCEDURE init
		return
ENDDEFINE

DEFINE CLASS c11 as C1
ENDDEFINE

DEFINE CLASS c12 as C11
	PROCEDURE init
		DODEFAULT()
ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform