AB
CD
A8BC
BCDFJ
where each letter is a coded value.* return criterion for field value lnLen=alen(.btcSelArray, 1) for li = 1 to lnLen && cycle over rows in the array of selected items m.crit=m.crit+ iif(li=1,iif(.ExcludeFlag, '! ', ''),iif(.ExcludeFlag, ' AND ! ', ' OR '))+; '"'+.btcSelArray[li]+'" $ '+mapto endforMy question is: do you think it's the best solution or there is another better solution?