Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent to INLIST for numeric values?
Message
 
À
21/05/1999 12:08:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00221425
Message ID:
00222128
Vues:
22
>>Is there a command like INLIST so I don't have to say IF x=1 or x=4 or x=12 or x=32 etc...? Right now I convert x to a string and use INLIST, but I have to code around the SET EXACT setting, which is somewhat bothersome. Thanks for any feedback.
>>
>>Marcus.
>Marcus,
>It's again Inlist.
>? inlist(myNumber, 1,3,4,19...)
>Cetin

Thanks Cetin and Ed,
Leave it to me to overlook the obvious! I've just always used INLIST with characters, and assumed that it only worked with characters.

Thanks again,
Marcus.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform