Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: endmacro Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: November 18 2008 at 21:12 | IP Logged Quote jeffw_00

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 View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: November 26 2008 at 09:37 | IP Logged Quote jeffw_00

bump?
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 26 2008 at 10:38 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: November 26 2008 at 16:02 | IP Logged Quote jeffw_00

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 View jeffw_00's Profile Search for other posts by jeffw_00
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum