<< Prev        

ID : 136

Stop

Function

To finish own task.

Syntax

Stop

Description

Finish own task to execute this statement.

Related Terms

Kill, Run, Suspend, SuspendAll, Halt, Hold, ContinueAll

 

Attention

-

Example

'!TITLE "Finishing Program"
' Finish a program
Sub Sample_Stop

  Dim aaa As Integer

  For aaa = 0 To 10

    ' Finish a program if satisfying a condition
    If aaa = 5 Then

      Stop

    End If

  Next

End Sub

ID : 136

<< Prev