Author |
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: November 18 2008 at 21:12 | IP Logged
|
|
|
I can't find any documentation on the "Endmacro" command. I'm guessing that it ends all macro execution (the ultimate "exit")) but I thought i would ask if its more complicated than that. I usually use a Jump 999 for "exit this macro", but now I want it to exit the calling macro as well.
thanks
/j
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: November 26 2008 at 09:37 | IP Logged
|
|
|
bump?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 26 2008 at 10:38 | IP Logged
|
|
|
End Macro will produce the same effect as Jump 999 (assuming you have less than 999 macro detail lines ). It's just a more intuitive way to do it and might make the resulting macro a little easier to read and understand.
If there is a desire to have a command to completely exit, I would need to look into this and see if it can easily be done. The problem comes when you're in a macro that was intitiated by a formula. Would the new command only exit calling macros? Or would it need to also try to exit the calling formula which itself may have been called by another formula. While it sounds simple, it may start to get pretty deep into the internal execution queue workings and I would need to see if I could accomplish it without having to change to much of the underlying structure.
Dave.
|
Back to Top |
|
|
jeffw_00 Super User
Joined: June 30 2007
Online Status: Offline Posts: 929
|
Posted: November 26 2008 at 16:02 | IP Logged
|
|
|
Thanks Dave - What I was doing was this - inside a submacro, I wanted to exit both the submacro and calling macro. If there's no easy way to do this, skip it, there are plenty of other ways to achieve the result - not worth any priority.
Thanks
/j
|
Back to Top |
|
|