Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I shorten code this?
Message
 
To
07/01/2000 10:40:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00314481
Message ID:
00314656
Views:
26
>IF INLIST("Y",my_field1,my_field2,my_field3.....on to whatever

Heh -- didn't think this would work until I tried it. I always use INLIST() the other way -- IF INLIST(lcMonth, "January", "February", "etc...").

One problem: if my_fieldn is wider than 1, it will fail with SET EXACT OFF, but it will work with SET EXACT ON.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform