probably here
query_sql("SELECT FIND_IN_SET('"+.@charmap$+"', '"+.maps$+"');",.@q);
if(.@charmap$!=.tmp$[(.@q-1)]) end;
you can try something like this
.maps$ = "aldeg_cas01|gefg_cas01|payg_cas01|prtg_cas01";
if( compare( "|"+.maps$+"|","|"+strcharinfo(3)+"|" ) ){
// check dual here.
}