Do you have a reference for that? (about Exit; I agree about On Error)
Sorry, got myself slightly confused (I really never use VB / VB.NET these
days). I was aware that there was some difference to do with Return in the
latest version, but it seems that the GoSub reserved word has now been
deprecated, not the Exit reserved word - sorry for the misleading
information.
This is straight out of MSDN...
In a Sub or Set procedure, the Return statement is equivalent to an Exit Sub
or Exit Property statement, and expression must not be supplied.
In a Function, Get, or Operator procedure, the Return statement must include
expression, and expression must evaluate to a data type that is convertible
to the return type of the procedure. In a Function or Get procedure, you
also have the alternative of assigning an expression to the procedure name
to serve as the return value, and then executing an Exit Function or Exit
Property statement. In an Operator procedure, you must use Return
expression.
You can include as many Return statements as appropriate in the same
procedure.