Exit Sub                                                                                                 Statement

 

EXIT SUB

 

Description

To exit a subroutine and return control to the calling program.

 

Example

Sub mySub(count as Integer , result as integer)

  If count > 100 then

    Result=0

    Exit Sub

  End if

  Result=count * 1.5

End Sub