Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype with tables
Message
From
25/12/2007 13:26:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
25/12/2007 10:44:44
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01277433
Message ID:
01277438
Views:
26
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform