Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INLIST syntax
Message
De
10/02/1997 19:49:44
Pete Dixon
Dixon & Associates
Toronto, Ontario, Canada
 
 
À
10/02/1997 13:21:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00019640
Message ID:
00019958
Vues:
35
>>You can compare this way:
>>IF '23' $ TEST
>
>Thanks, I presently using Paul's suggestion consisting of checking ',23,'$','+ALLTRIM(myvar)+','.


I guess you could also macro substitute your search target into the inlist function, a la:

target.mydata = "2,4,6,23,65,767"

x = '"' + strtran(target.myadata,',','","') + '"'

if inlist("23",&x)
logic
endif

but... $ is simpler <g>.

Pete
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform