Hi people,
i hope someone can help me with the following:
i have a problem with using "on error goto". when an error occurs
the errortrap works nicely and the correct actions are taken.
however, when the error occurs again in the same run, the program
aborts with the default PB error stuff and does not go through the
"on error goto" statement. as far as i know i only have to issue
the "on error goto" statement once. i wrote some pseudo code to
hopefully clarify my program flow a bit.
' main
on error goto crashexit
call menu
end
' subs
sub menu
do
exit far at synterr1
call actions
synterr1:
loop
end sub
sub actions
' this is where an error occurs
end sub
' errorstuff
crashexit:
print "error"
exit far
So, if someone can tell me more about why the errortrap only works
once, i'd be much obliged.
Thanx,
Tks
------------------
www.DiyDataRecovery.nl
www.kuurstra.cistron.nl
i hope someone can help me with the following:
i have a problem with using "on error goto". when an error occurs
the errortrap works nicely and the correct actions are taken.
however, when the error occurs again in the same run, the program
aborts with the default PB error stuff and does not go through the
"on error goto" statement. as far as i know i only have to issue
the "on error goto" statement once. i wrote some pseudo code to
hopefully clarify my program flow a bit.
' main
on error goto crashexit
call menu
end
' subs
sub menu
do
exit far at synterr1
call actions
synterr1:
loop
end sub
sub actions
' this is where an error occurs
end sub
' errorstuff
crashexit:
print "error"
exit far
So, if someone can tell me more about why the errortrap only works
once, i'd be much obliged.
Thanx,
Tks
------------------
www.DiyDataRecovery.nl
www.kuurstra.cistron.nl
Comment