Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Posted: 23 Jun 2017 at 8:15am
else 1=1 is killing you. I would try
if instr({JCJMPM.udMarketType}, {?MarketTypes}) > 0 then something
this code is trying to find the start of the market type in the parameter. Of course there is the problem of 1 being found in 12 and 15...so it is not perfect.
The next step, and I don't know if it is possible, is to break your input parameter into an actual array of values, and then your original code would work as long as you point it at the array that you just made.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum