If I call a subroutine and the subroutine fails using the internal error trapping, can I pass back to the parent sub an error message or such that can be used later?
sub mdl_parent()
dim myMsg as string
Call mdl_validate1
myMsg = myMsg & 'result from validation 1 error
Call mdl_Validate2
myMsg = myMsg & 'result from validation 2 error
msgbox(myMsg)
end sub
sub mdl_validate1()
on error goto myError
'my code goes here
myExit:
exit sub
myError:
mymsg = error$ & " Problem in validation 1 process" & chr$(13)
end sub
sub mdl_validate1()
on error goto myError
' my code goes here
myExit:
exit sub
myError:
mymsg = error$ & " Problem in validation 2 process" & chr$(13)
end sub
please help
cheers
Matthew
crazy times call for crazy people
CrazyPabs
sometimes I wonder why I even bova...
sub mdl_parent()
dim myMsg as string
Call mdl_validate1
myMsg = myMsg & 'result from validation 1 error
Call mdl_Validate2
myMsg = myMsg & 'result from validation 2 error
msgbox(myMsg)
end sub
sub mdl_validate1()
on error goto myError
'my code goes here
myExit:
exit sub
myError:
mymsg = error$ & " Problem in validation 1 process" & chr$(13)
end sub
sub mdl_validate1()
on error goto myError
' my code goes here
myExit:
exit sub
myError:
mymsg = error$ & " Problem in validation 2 process" & chr$(13)
end sub
please help
cheers
Matthew
crazy times call for crazy people
CrazyPabs
sometimes I wonder why I even bova...