Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vartype with tables
Message
De
26/12/2007 15:33:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/12/2007 09:17:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01277433
Message ID:
01277615
Vues:
19
>>I can use type for if there is a field in table:
>>
>>
?type("mytable.myfield")="U"
>>
>>but with vartype
>>
>>
?vartype("mytable.myfield")="U"
>>
>>is generates variable not found. Isn't that a bug?
>
>Here's what we said in HackFox about this:
>
>"Because VARTYPE() explicitly passes the expression to test as a parameter, it fails if an expression cannot be evaluated, causing an error 12, "Variable not found"—you'll still want to use TYPE() to check if a variable exists."
>
>Tamar

Tamar,
But I don't understand why would
?vartype("mytable.myfield")="U"
error. There is nothing to fail there.
It doesn't error for me and correctly displays .F. Do you all get error and not me?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform