SETFILTER Asterisk ??

location.RESET;
location.SETFILTER(Code,’%1’,’*A|B1’);
IF location.FIND(’-’) THEN BEGIN
REPEAT
MESSAGE(‘b%1’,location);
UNTIL location.NEXT = 0;
END;

CODE NAME

*A A1

*AAA A2
B1 B1

show *A,*AAAA,B1 error
I need show *A,B1

location.SETFILTER(Code,’%1|%2’,’*A’,‘B1’);