********** WRONG THREAD, CAN"T FIGURE OUT HOW TO MOVE IT TO QUESTIONS ***********
I'm looking for a sanity check. I experimented a bit go, the results weren't what I expected, so I'm looking for some insight or corroboration.
Goal:
While a macro is running, have it conditionally fire up another macro. Something like:
/if <some condition> {
/<do some miscellaneous stuff>
/mac theothermacro
}
I hoped that this would essentially close down macro #1 and fire up macro #2, as if I had programatically or manually executed /endmac, then manually executed /mac theothermac.
Didn't seem to work this way. It looked as if some variable initialization didn't occur.
The two macros work fine independently. I admit I did nothing special beyond what I described above. I also admit that proper programming technique would be to re-code these macros into a set of .INCs or subs withing a single macro, but I was looking for a shortcut.
So, any suggestions? "It doesn't work that way" is a satisfactory response and if that's the answer, I'll be patient while I work out the code, but I was hoping I missed something obvious that should be added to macro #2 to let it start up gracefully.
...I also added similar logic to macro #2 so that it could conditionally end and return control to macro #1. Never got that far.
I'm looking for a sanity check. I experimented a bit go, the results weren't what I expected, so I'm looking for some insight or corroboration.
Goal:
While a macro is running, have it conditionally fire up another macro. Something like:
/if <some condition> {
/<do some miscellaneous stuff>
/mac theothermacro
}
I hoped that this would essentially close down macro #1 and fire up macro #2, as if I had programatically or manually executed /endmac, then manually executed /mac theothermac.
Didn't seem to work this way. It looked as if some variable initialization didn't occur.
The two macros work fine independently. I admit I did nothing special beyond what I described above. I also admit that proper programming technique would be to re-code these macros into a set of .INCs or subs withing a single macro, but I was looking for a shortcut.
So, any suggestions? "It doesn't work that way" is a satisfactory response and if that's the answer, I'll be patient while I work out the code, but I was hoping I missed something obvious that should be added to macro #2 to let it start up gracefully.
...I also added similar logic to macro #2 so that it could conditionally end and return control to macro #1. Never got that far.