I ran into a problem. Please see code sample below:
Sub a()
try
For i = 0 to 10
Sub b
Next
catch ex as Exception
ErrorTrap
end try
end sub
Sub b()
try
......
catch
......
end try
end sub
if there an error occured in Sub b, Sub a would go to catch also and the For loop stopped. What can I do to let the For loop continue until i = 10?
Thanks.
Dan-Yeung
Sub a()
try
For i = 0 to 10
Sub b
Next
catch ex as Exception
ErrorTrap
end try
end sub
Sub b()
try
......
catch
......
end try
end sub
if there an error occured in Sub b, Sub a would go to catch also and the For loop stopped. What can I do to let the For loop continue until i = 10?
Thanks.
Dan-Yeung