General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only