Is there a way to do something like this , suppose i am have finished executing a procedure in my module then i want to go to the last line of another procedure in my form. Is this possible?
Printable View
Is there a way to do something like this , suppose i am have finished executing a procedure in my module then i want to go to the last line of another procedure in my form. Is this possible?
Code:Sub MySub(ByVal GotoLastLine As Boolean)
If GotoLastLine = True Then Goto LastLine
Print 1
Print 2
LastLine:
Print 3
End Sub
keep in mind that in the next version of vb the goto goes away.
You should put that last line in its own procedure if it needs to be used more than once.
I checked this one for another question m'lord :)
VB7 still supports the goto, even though I read they wanted to take it out too.Quote:
keep in mind that in the next version of vb the goto goes away.