Branching out of a Subroutine Error

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
andrewzpsu
Newbie
Posts: 1
Joined: Wed Apr 06, 2011 9:00 pm

Branching out of a Subroutine Error

Post by andrewzpsu » Wed Apr 06, 2011 9:04 pm

I keep getting the Branching out of a Subroutine is not recommended popup, although it simply goes to another label inside of the subroutine.

Any ideas how to either disable this error, or get around it?

I just recently updated from Macro Scheduler 10 and it didn't have this problem. 12 is kicking out a lot of my old macros and this one I can't figure out.

Thanks,
Andrew

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Wed Apr 06, 2011 9:16 pm

Look in the help file for SkipLabel

See the following example

Code: Select all

GoSub>DoNotDoThis

GoSub>DoThisInstead


SRT>DoNotDoThis
  Let>a=1
  Let>b=2
  
  If>a=1
     Goto>Exit
  Endif
END>DoNotDoThis


SRT>DoThisInstead
  Let>a=1
  Let>b=2
  
  If>a=1
     SkipLabel>Exit
  Endif
END>DoThisInstead


Label>Exit



Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts