Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why can I use .properties in WHERE clause but not SELECT?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Why can I use .properties in WHERE clause but not SELECT?
Miscellaneous
Thread ID:
00930193
Message ID:
00930193
Views:
50
Given the following two code snippets:
*--- Sample 1 -- Works fine
use c:\foxtemp\table1
scatter memo name loTest
with loTest
   sele * from loTest where .id = id
endwith
close tables
*--- Sample 2 -- Syntax Error
use c:\foxtemp\table1
scatter memo name loTest
with loTest
   sele iif(.name = name,"Yes","No") as indicator from loTest where .id = id
endwith
close tables
Why does Sample 1 work fine and Sample 2 gives me a syntax error. Why can't the query work with .property in the select items but it can in the where clause?

Thanks for your help!

Rodd
Next
Reply
Map
View

Click here to load this message in the networking platform