Hi all,
Let's say I have a Sub Main procedure, that calls a function inside the Sub:
I do realize that I can return a bool value from the function and then do a following check that if the return value is true then exit the Sub. I was just wondering if there is a way to kill the Sub Main from inside the Function.Code:Sub Main ( ) Call TheFunction(True) End Sub Function TheFunction(blnVar as Boolean) If blnVar = True Then ' I want to kill the Sub Main ( ) here! End If End Function
Sanctos




Reply With Quote