Home > lang > return 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
RETURN
RETURN [ Expression ]

Quit a procedure or a function by returning the value of Expression.

Since 3.1 version

RETURN is used alone too for returning from a GOSUB.

The RETURN statement does not take into account the FINALLY statement. It returns immediately without executing the FINALLY code.

In Visual Basic™ you must use the function name and assign it the returned value before returning from the function with "Exit Function".

See also

Miscellaneous Control Structures, Datatypes