Thanks a lot RHD
In the program A.W i use this
{ADLIMPIA.I "{&TEXTOS}"}.
and ADLIMPIA.I now has this code:
DEF VAR t_campos AS CHAR NO-UNDO.
t_campos = "{1}".
t_campos = REPLACE(t_campos, ' ', ',').
t_campos = REPLACE(t_campos,' ',','). /* with this i can use lookup */
DEFINE VARIABLE hWidget AS HANDLE NO-UNDO.
ASSIGN hWidget = FRAME default-frame:HANDLE.
hWidget = hWidget:FIRST-CHILD.
hWidget = hWidget:FIRST-CHILD.
DO WHILE VALID-HANDLE ( hWidget ):
IF LOOKUP(hWidget:NAME,t_campos) > 0 THEN hWidget:SCREEN-VALUE = ''.
ASSIGN hWidget = hWidget:NEXT-SIBLING.
END.
ASSIGN {1}.
All this code is used for clean variables used for filters and due I have many w programs with filters, then this code is a general solution.
It works ok.
Thanks