T
Tomas Andersson
Hi,
Does anyone know if it's possible to GoTo a line in a different sub
I have a program whith a loop. In this loop I would like to put a tag and if
something goes wrong with the execution in one of the subs or functions
called in this loop it should go back to the loop and continue with the next
execution.
I don't know if this makes sense so "code" below might be clearer
File A.VB
------------
sub Z
do
lable nextthingtodo
call sub X
loop
end sub
File B.VB
----------
sub X()
bla bla
bla bla bla
call sub ZZ
if error
go to nextthingtodo
end if
end sub
sub ZZ()
if error
GotTo nextthingtodo
end if
end sub
Does anyone know if it's possible to GoTo a line in a different sub
I have a program whith a loop. In this loop I would like to put a tag and if
something goes wrong with the execution in one of the subs or functions
called in this loop it should go back to the loop and continue with the next
execution.
I don't know if this makes sense so "code" below might be clearer
File A.VB
------------
sub Z
do
lable nextthingtodo
call sub X
loop
end sub
File B.VB
----------
sub X()
bla bla
bla bla bla
call sub ZZ
if error
go to nextthingtodo
end if
end sub
sub ZZ()
if error
GotTo nextthingtodo
end if
end sub