Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VARTYPE() vs PEMSTATUS()
Message
De
08/01/2009 22:18:37
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01372210
Message ID:
01372227
Vues:
24
>>Is there any difference between these two functions - Dragan's anticipated comments aside - or advantage of one over the other?
>>
>>IF VARTYPE( THISFORM.tmrCheckMousePosition ) = 'O'
>>
>>
>>IF PEMSTATUS(THISFORM.tmrCheckMousePosition,'O',3)
>>
>
>The second syntax is incorrect.
>
>PEMSTATUS()
>
>If you need to check for a property or a method, use pemstatus. Otherwise you may check with vartype. It all depends on what you're trying to do.

Syntax aside, obviously I'm checking to see if an object exists. Just an exacto knife and a pencil, Nadya.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform