Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date in sql statement returns 0 or 1
Message
 
 
À
24/05/2011 13:16:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01511582
Message ID:
01511740
Vues:
65
>>I have a select statement getting 3 date fields from a vfp table.
>>
>>
>>SELECT 	IIF(EMPTY(incep_date), "", DTOC(incep_date)) AS incep_date, ;
>>	IIF(EMPTY(anniv_date), "", DTOC(anniv_date)) AS anniv_date, ;
>>	IIF(EMPTY(term_date), "", DTOC(term_date)) AS term_date ;
>>FROM myTable ;
>>INTO CURSOR myCursor
>>
>
>Just want to point out that you could use EVL() instead of IIF(EMPTY()...).
>
>Tamar

I didn't know that! Thanks for pointing that out.
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform