ENDSUB

Top  Previous  Next

Syntax

ENDSUB

Description

Marks the end of a subroutine.

Parameters

None

Return value

None

Remarks

Every SUB statement must be paired with an ENDSUB to mark the start and end of the subbroutine.

See Also: SUB, RETURN, DECLARE

Example usage

SUB IsDigit(c as CHAR)
    SELECT 1
        CASE c < 0x30
            RETURN 0
        CASE c > 0x39
            RETURN 0
        default:
            RETURN 1
    ENDSELECT
ENDSUB