Mar 10, 2006 #1 TimTDP Technical User Feb 15, 2004 373 ZA I have a Routine that calls a sub routine. Can I cancel the main routine from the sub routine? I have an instance where a condition in the sub routine is met I want all code to stop.
I have a Routine that calls a sub routine. Can I cancel the main routine from the sub routine? I have an instance where a condition in the sub routine is met I want all code to stop.
Mar 11, 2006 1 #2 dynamictiger Technical User Dec 14, 2001 206 AU The approach that I would use is something like: Main Routine Dim blnDone as Boolean Call SubRoutine(blnDone) If blnDone then Exit Else Do Something End if Exit here This should acheive what you are looking for. HTH Upvote 0 Downvote
The approach that I would use is something like: Main Routine Dim blnDone as Boolean Call SubRoutine(blnDone) If blnDone then Exit Else Do Something End if Exit here This should acheive what you are looking for. HTH