Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you embed CASE expression in SELECT statement?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00299791
Message ID:
00299799
Views:
28
>Is there a way to embed a CASE expression in a SELECT statement in VFP? I can do it in SQL passthru using SQL Server 7, but can't get it to work in VFP and can't find any documentation that it is even allowed?
>
>Thanks,
>Doug

Doug, you can call the UDF within your SELECT and your UDF will have that CASE statement and return the value according the CASE.
From your UDF you can even call another SELECT to get some values.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform