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.comWould you believe Far Side Lite?
More than 270 original cartoons.