Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sort not working as expected
Message
 
 
To
12/11/2008 09:55:33
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361158
Message ID:
01361337
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>What we finally ended up doing was create another 'type' for the empty(neSigOpt) condition. What was frustrating me was that even when I changed the neSigOpt to iif(empty(neSigOpt),1,neSigOpt) as neSigOpt, we still got the same results

In VFP in case when a field alias has the same name as a field in a table, the table field takes precedence. IOW, you still referencing neSigOpt field from the table not the new calculated value. It would work if you use an alias that was not intersecting with the table filed names and adjust ORDER BY accordingly.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform