Author Topic: ExitFor  (Read 2726 times)

0 Members and 2 Guests are viewing this topic.

Peter

  • Guest
ExitFor
« on: October 08, 2011, 10:42:10 AM »
Deleted
« Last Edit: May 05, 2015, 09:33:01 AM by Peter »

Aurel

  • Guest
Re: ExitFor
« Reply #1 on: October 08, 2011, 12:25:11 PM »
 :D
Which command EXITFOR or GOTO.
And by the way why you post this here on Oxygen Forum >:(

JRS

  • Guest
Re: ExitFor
« Reply #2 on: October 08, 2011, 12:36:09 PM »
Quote
he has took  that evil GOTO

Is jmp evil in ASM?


Charles Pegge

  • Guest
Re: ExitFor
« Reply #3 on: October 08, 2011, 04:12:12 PM »
jmp fwd is a little smarter the goto, since it restricts the direction of linkage and allows the same label name to be used more than once.

Code: OxygenBasic
  1.  
  2. xit:
  3.  
  4. '...
  5.  
  6. jmp fwd xit:
  7.  
  8. '...
  9.  
  10. xit:
  11.  
  12.  

The priority direction of linkage is backwards, so goto would send this code into a perpetual loop.

Charles

Oxygen supports exit for BTW

JRS

  • Guest
Re: ExitFor
« Reply #4 on: October 08, 2011, 06:12:19 PM »
ScriptBasic uses GOTO to jump out of FOR/NEXT, GOSUB, ... and is smart enough to clean up on the way out.

« Last Edit: October 08, 2011, 06:32:10 PM by JRS »