M
mp
given a try block like this
Function Something()As Object
....some code
Try
DoSomething
Catch ex As Exception
'if failed
Return Nothing
'is that the same as Exit Function?
End Try
....more code
Return someObject
End Function
if the exception occurs, does the Return Nothing also exit the function (so
....more code won't run)
or do i also need to add Exit Function if i don't want 'more code' to run?
thnaks
mark
Function Something()As Object
....some code
Try
DoSomething
Catch ex As Exception
'if failed
Return Nothing
'is that the same as Exit Function?
End Try
....more code
Return someObject
End Function
if the exception occurs, does the Return Nothing also exit the function (so
....more code won't run)
or do i also need to add Exit Function if i don't want 'more code' to run?
thnaks
mark