Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a shorcut for this one too...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Need a shorcut for this one too...
Miscellaneous
Thread ID:
00315967
Message ID:
00315967
Views:
61
I am looking for a shortcut way to do this.
Thanks in advance and then some.

IF mytable.my_field1 = "Y" AND ;
mytable.my_field2 = "Y" AND ;
mytable.my_field3 = "Y" AND ;
mytable.my_field4 = "Y" AND ;
mytable.my_field5 = "Y" AND ;
...(do whatever)
ENDIF

I learned from John Koziol that I can use INLIST() function for
IF
..."Y" OR ;
..."Y" OR ;
..."Y" OR ;
...(do whatever)
ENDIF

But INLIST() doesn't look like it would work for AND conditions;
Is there something like INLIST() but for AND conditions that checks for all matches .T. (true) when comparing an expression contained in every expression, not just one expression as in OR conditions?

I could use one. Thanks.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Next
Reply
Map
View

Click here to load this message in the networking platform