Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INLIST syntax
Message
From
10/02/1997 19:49:44
Pete Dixon
Dixon & Associates
Toronto, Ontario, Canada
 
 
To
10/02/1997 13:21:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00019640
Message ID:
00019958
Views:
33
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform