Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a shorcut for this one too...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Need a shorcut for this one too...
Divers
Thread ID:
00315967
Message ID:
00315967
Vues:
59
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform