Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort not working as expected
Message
 
 
À
12/11/2008 09:55:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01361158
Message ID:
01361337
Vues:
16
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform