J
Joe Duchtel
Hello -
I was wondering if it is the best way to exit nested For loops by
using an empty Try/Finally block? Is there any other "nicer" way of
doing this in Visual Basic?
Try
For i ...
For j ...
If lError Then Return Nothing ' This will also enter the
Finally block
For k ...
Exit Try
Finally
End Try
Thanks,
Joe
I was wondering if it is the best way to exit nested For loops by
using an empty Try/Finally block? Is there any other "nicer" way of
doing this in Visual Basic?
Try
For i ...
For j ...
If lError Then Return Nothing ' This will also enter the
Finally block
For k ...
Exit Try
Finally
End Try
Thanks,
Joe