Siebel VB Language Reference > Siebel VB Language Reference >

Stop Statement


This standard VB statement halts program execution.

Syntax

Stop

Argument
Description
Not applicable
 

Returns

Not applicable

Usage

Stop statements can be placed anywhere in a program to suspend its execution. Although the Stop statement halts program execution, it does not close files or clear variables.

Example

This example stops program execution at the user's request.

Sub Button_Click
   Dim str1
   str1 = Y
   If str1 = "Y" or str1 = "y" then
      Stop
   End If
End Sub


 Siebel VB Language Reference
 Published: 18 June 2003