Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I shorten code this?
Message
 
À
07/01/2000 10:40:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00314481
Message ID:
00314804
Vues:
24
>IF INLIST("Y",my_field1,my_field2,my_field3.....on to whatever
>
>>I am looking for a shortcut way to do this.
>>Thanks in advance and then some.
>>
>>IF mytable.my_field1 = "Y" OR ;
>> mytable.my_field2 = "Y" OR ;
>> mytable.my_field3 = "Y" OR ;
>> mytable.my_field4 = "Y" OR ;
>> mytable.my_field5 = "Y" OR ;
>> ...(do whatever)
>>ENDIF
John,

Just to be a PIA, here's another one that works;

IF "Y" $ My_field1 + My_field2 + My_field3 + MY-Field4 ...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform