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

Click here to load this message in the networking platform