J
James Radke
Hello,
I have a module which has the flow as follows
Private sub trysomething()
Try
if something....
... some code
if something
dim x as new clsX()
call x.func(parm1)
dim y as new clsY()
call y.func(parm2)
else
dim x as new clsX()
call x.func(parm2)
dim y as new clsY()
call y.func(parm2)
end if
end if
catch ex as exception
msgbox = ex.message
end try
end sub
if in module class clsX - func: I also have try catch block. This try catch
does catch an error, however, it is never passed up to the trysomething
subroutine? How come? Is it because of the nested IF's? This means thet
y.func is getting called even though an error did occur and was caught in
x...
How can I fix this correctly so that if an error occurs in X, the main
trysomething Catch is triggered?
Thanks!
Jim
I have a module which has the flow as follows
Private sub trysomething()
Try
if something....
... some code
if something
dim x as new clsX()
call x.func(parm1)
dim y as new clsY()
call y.func(parm2)
else
dim x as new clsX()
call x.func(parm2)
dim y as new clsY()
call y.func(parm2)
end if
end if
catch ex as exception
msgbox = ex.message
end try
end sub
if in module class clsX - func: I also have try catch block. This try catch
does catch an error, however, it is never passed up to the trysomething
subroutine? How come? Is it because of the nested IF's? This means thet
y.func is getting called even though an error did occur and was caught in
x...
How can I fix this correctly so that if an error occurs in X, the main
trysomething Catch is triggered?
Thanks!
Jim