Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vartype function fixed in SP3...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00237900
Message ID:
00237932
Vues:
12
>... under runtime when passing an undefined variable. There was recently some off-line discussion of a problem with the VARTYPE function generating an error if the variable being passed was undefined under runtime conditions. Indeed, I did not see any such error in development. In testing this on a machine with VFP 6 SP3 runtime only, VARTYPE is returning U for undefined variables passed to it.

Mark,

I believe the problem is when vartype() is asked to determine the type of a property for a non-existant object. I believe that it was said that it is by design because vartype() was added to be faster than Type() and therefore is doesn't do the checking the same way and it therefore cannot trap the non-existant object.

All fo this is from memory, so it may not be correct.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform