Return Instruction

Syntax              Return expr

Group                Flow Control

Description       The return instruction causes the Function block to exit with the value of the expr.

VBA                   This language element is not VBA compatible and requires the #Language "WWB-COM" setting.

Example            '#Language "WWB-COM"
Sub Main
    Debug.Print Func(2) ' 6
EndSub

Function Func(N)
    Return N*3
End Function