Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PEMstatus on non-existent method?
Message
De
29/12/2004 19:48:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
PEMstatus on non-existent method?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00973148
Message ID:
00973148
Vues:
55
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform