Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CDow
Message
From
20/01/2006 08:51:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: CDow
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01088127
Message ID:
01088861
Views:
14
>Check new ICASE() function

>>here in long syntax
>>SELECT IIF(nday=1,"monday ",IIF(nday=2,"tuesday ",IIF(nday=3,"wednesday",IIF(nday=4,"thursday ",IIF(nday=5,"friday ",IIF(nday=6,"saturday ",IIF(nday=7,"sunday ","no day"))))))) as cday FROM xtable

Properly improved, thanks to Sergey:

SELECT ICASE(nday=1,"monday ",nday=2,"tuesday ",;
nday=3,"wednesday",nday=4,"thursday",nday=5,"friday ",;
nday=6,"saturday",nday=7,"sunday ") as cday FROM xtable
John Harold Belalcázar Lozano
Associate Director Of Development
http://www.belvicto.co/
jhbelalc@gmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform