Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VARTYPE() vs PEMSTATUS()
Message
De
11/01/2009 10:10:51
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
08/01/2009 19:20:47
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:
01372641
Vues:
16
>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)
>
I prefer type() function. vartype and pemstatus gives error if there isn't any object about looked property...

?vartype(myform.myproperty) &&--- it will give error if there isn't object named myform

?type("myform.myproperty") &&-- it won't give error.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform