Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vartype with tables
Message
De
25/12/2007 13:26:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
25/12/2007 10:44:44
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01277433
Message ID:
01277438
Vues:
24
>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?

First, you must omit the quotation marks:
? vartype(mytable.myfield)
* or
? vartype(mytable.myfield = "U"
Once you do this, it works only if the field exists. I think you must use type() in this case.

It does work for variables.

In summary, I am not sure whether this should be considered a bug.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform