The code you show in #15 is convoluted and overly complex, but it should work. I can see only one reason why it would work properly with a global macro but not a local. Code containing local macros must be run uninterrupted. If you stop the code, the local macros go out of existence, and are not re-established when you resume it. So to use the code with local macros you must run it all in one fell swoop.
That said, have you tried the code in #14? It is simpler and it should do the job for you.
That said, have you tried the code in #14? It is simpler and it should do the job for you.
Comment