End Statement [Runtime]/text/sbasic/shared/03090404.xhpSun Microsystems, Inc.converted from old format - fpeEnd statementEnd Statement [Runtime]Ends a procedure or block.Syntax:End, End Function, End If, End Select, End SubParameters:Use the End statement as follows:StatementEnd: Is not required, but can be entered anywhere within a procedure to end the program execution.End Function: Ends a Function statement.End If: Marks the end of a If...Then...Else block.End Select: Marks the end of a Select Case block.End Sub: Ends a Sub statement.Example:Sub ExampleRandomSelectDim iVar As IntegeriVar = Int((15 * Rnd) -2)Select Case iVarCase 1 To 5Print "Number from 1 to 5"Case 6, 7, 8Print "Number from 6 to 8"Case Is > 8 And iVar < 11Print "Greater than 8"Case ElsePrint "Outside range 1 to 10"End Selectend sub