Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does Memory Variable Exist?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00832958
Message ID:
00833118
Vues:
26
Hi Anatoliy,

VARTYPE() is fine for a single variable but throws an error when testing for a non-existent array element, whilst TYPE() tests ok. eg:
? TYPE( "NoArray[1]" )   &&  returns "U" - no problem

? VARTYPE( NoArray[1] )  &&  causes an error message 
Otherwise I also prefer VARTYPE().




>I just opened VFP6 session and type in Command window
>? VARTYPE(aa)
>no error returned.
>
>As I can see an error can happen if the second parameter is used with VARTYPE like
>? VARTYPE(m.bb, .T.)
>
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform