RETURN

Syntax

RETURN

Description

RETURN causes an unconditional exit from a user-defined function.

Example

This function will be terminated if the second argument is 0.

function divide as N(arg1 as N, arg2 as N)

    if arg2 = 0 then

    ui_msg_box("Error","Cannot divide by zero")

    return

end if

divide = arg1/arg2

end function

See Also

Language Reference, Reserved Words

Supported By

Alpha Five Version 5 and Above