Stop Statement
The Stop statement is a control structure that stops code from running. It does not return a value. It does not include arguments. You can include a Stop statement anywhere in Siebel VB code. A Stop statement does not close files or clear variables.
Format
Stop
Example
The following example stops code from running when the user clicks a button:
Sub Button_Click
Dim str1
str1 = Y
If str1 = "Y" or str1 = "y" then
Stop
End If
End Sub