N
Nemisis
HI everyone,
I have a sub that executes a query, within the sub there is a try,
catch, finally block. lets call this subA.
I also have another sub (subB) that calls SubA, and another Sub (SubC)
that calls SubB.
SubC (with Try..Catch) > SubB (without Try..Catch) > SubA (with
Try..Catch)
SubC has a try..catch block and so does SubA. If SubA does encounter
an error, why does it not error up through the subs?? SubB does NOT
have a try..catch block
So i have to turn these subs into functions and return a 1 or 0,
depending on whether a error has occurred or not??
Sorry if this is a silly stupid question, i am still getting to grips
with .net 2.0
I have a sub that executes a query, within the sub there is a try,
catch, finally block. lets call this subA.
I also have another sub (subB) that calls SubA, and another Sub (SubC)
that calls SubB.
SubC (with Try..Catch) > SubB (without Try..Catch) > SubA (with
Try..Catch)
SubC has a try..catch block and so does SubA. If SubA does encounter
an error, why does it not error up through the subs?? SubB does NOT
have a try..catch block
So i have to turn these subs into functions and return a 1 or 0,
depending on whether a error has occurred or not??
Sorry if this is a silly stupid question, i am still getting to grips
with .net 2.0