Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PEMstatus on non-existent method?
Message
 
 
To
29/12/2004 19:48:53
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973148
Message ID:
00973149
Views:
20
This message has been marked as the solution to the initial question of the thread.
Chris,
IF PEMSTATUS(oObject, cMethodName, 5)
>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?
>
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform