Syntax: “Exit Sub” or “Return” in VB.NET subroutines

From the doc:

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.

So they’re the same in this context.

(Return (<value>) is used in functions and property.get’s. Obviously slightly different in that context).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)