Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEMstatus on non-existent method?
Message
From
29/12/2004 19:48:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
PEMstatus on non-existent method?
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973148
Message ID:
00973148
Views:
56
I know I've seen the answer to this here before, or in the Hacker's Guide, but I can't seem to make it work right now...

I'm trying to check if an object has a specified method before executing said method:
IF !EMPTY(cMethodName)
	IF PEMSTATUS(oObject, cMethodName, 4) && Invalid cMethodName
		oObject.&cMethodName
	ENDIF
ENDIF
VFP is throwing me "Function argument value, type, or count is invalid." on the PEMstatus call when the Method does not exist. I thought that's what PEMstatus 4 was supposed to check?

Chris.
Next
Reply
Map
View

Click here to load this message in the networking platform