In Visual Basic
, a sub
is short for a subroutine
is inherited that from its loose BASIC
roots). The main difference between a sub and a function
is that a sub doesn't (can't) return
anything. A sub also does not have a comparative
value, as a function would in C
MsgBox "Hello world"
if sub1 > 0 then ....
The above code would error
out, because subs have no value.
Note, this node is accurate as on VB6