When I ran into this problem I took all of the procedures from all of my
cleanup code snippets and moved them to a separate program. Then I referred
to them using the IN clause.
For instance for a screen set CUSTMNT.SPR consisting multiple tab screens, I
created a program CUSTMNT.PRG.
If I had the line
DO addcust
in the valid snippet of a control button and addcust was a procedure in the
cleanup code, I moved the PROCEDURE addcust to CUSTMNT.PRG and changed the
valid snippet entry to
DO addcust IN custmnt.prg
This did it in my case because I had a lot of cleanup code procedures.
Greg Low