Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #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
  #2  
Old 10-08-2012, 10:50 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,013
Add a step (i.e., Group or Log Message) after the Subroutine Call step at the same indent level so that the build continues within the loop.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:21 PM.


Copyright © 1999-2023 Kinook Software, Inc.