Thread: Exit in VB 7.7
View Single Post
  #1  
Old 10-08-2012, 09:40 AM
AndyChamp AndyChamp is online now
Registered User
 
Join Date: 10-08-2012
Posts: 1
Unhappy Exit in VB 7.7

I have a script that contains a subroutine. I call the subroutine from inside a loop; in the subroutine I have an Exit step to abort the subroutine on a condition. I've found that it returns to the main part of the script at the step following the subroutine call - and this is true even if the call was inside a loop, so if the step was last in the loop it aborts the loop. Is this to be expected?

I notice that there is a change to Exit in VB8, but I don't think our site licence covers that.
Reply With Quote