m.typefilt = "INLIST(a09macct.typegroup, "CASH", "BANK")this is the code in the valid of an invisible button:
invhelp(paras, ..., m.typefilt)this is the code in invhelp():
PARAMETERS m.zparas, ..., m.zfilter ... IF m.zfilter # "NOCHANGE" SET FILTER TO &zfilter. ENDIF ...This above works well. Now I ended up with a requirement wherein the typegroup can contain a word and not necessary at the start of the field. So I wrote a udf to tackle the same which just does a $ for each and every parameters passed to the UDF so the inv. button call changed to:
m.typefilt = "typgrp(a09macct.typegroup, "CASH", "BANK")This above started giving me errors so I changed the inv. button code to:
invhelp(paras, ..., &typefilt.)Great works for a screen, but the second screen gives an error, why?