Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype with tables
Message
From
27/12/2007 07:35:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01277433
Message ID:
01277702
Views:
17
>>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
>
>That command is comparing the character string "mytable.myfield" to the character string "U". Unlike TYPE(), the VARTYPE() parameter is not quote delimited. You will get an error if you leave off the quote marks and reference an undefined field.

Not quite but I think you meant it is comparing the type of "mytable.myfield" expression (which is "C") to "U" but so what?
Why would
?vartype("mytable.myfield")="U"
error, I don't get. It wouldn't and it doesn't error here.

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform