SUB ... END SUB


    SUB name ( [arg [= expr] {, arg [= expr]} ] [, ...] )
        [ DIM variable {, variable } ]
        [ STATIC variable {, variable } ]
        [ SHARED variable {, variable } ]
        [ RETURN ]
        [ EXIT SUB ]
        { statement }
    END SUB


Sub is essentially the same as Function, but does not return any values. Refer to Function for details.