home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
PROGRAM
/
VISBASIC
/
VBRIG10A
/
DEMOSTD.FR_
/
DEMOSTD.FR
Wrap
Text File
|
1994-10-02
|
10KB
|
318 lines
VERSION 2.00
Begin Form Form1
BorderStyle = 1 'Fixed Single
Caption = "VB/Rig Std Demo - Force Errors"
ClientHeight = 3375
ClientLeft = 2415
ClientTop = 1440
ClientWidth = 5595
Height = 3780
Left = 2355
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3375
ScaleWidth = 5595
Top = 1095
Width = 5715
Begin CommandButton Command5
Caption = "&Close"
Height = 375
Left = 1980
TabIndex = 2
Top = 2880
Width = 1635
End
Begin CommandButton Command4
Caption = "Error in a Code Procedure (trapped remotely)"
Height = 435
Left = 600
TabIndex = 3
Top = 2160
Width = 4395
End
Begin CommandButton Command3
Caption = "Error in a Code Procedure (trapped locally)"
Height = 435
Left = 600
TabIndex = 6
Top = 1620
Width = 4395
End
Begin CommandButton Command2
Caption = "Error in a Private Form Procedure"
Height = 435
Left = 600
TabIndex = 5
Top = 1080
Width = 4395
End
Begin CommandButton Command1
Caption = "Error in an Event Procedure"
Height = 435
Left = 600
TabIndex = 4
Top = 540
Width = 4395
End
Begin TextBox Text1
Height = 315
Left = 3600
TabIndex = 1
Text = "380"
Top = 120
Width = 1395
End
Begin Label Label1
Caption = "Supply your favorite error &number:"
Height = 195
Left = 600
TabIndex = 0
Top = 180
Width = 2955
End
End
Option Explicit
Const VBRIG_MODULE_ID_STRING = "DEMOSTD.FRM"
Sub Command1_Click ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+Command1_Click"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo Command1_Click_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Error Val(text1.Text)
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'=======================
Command1_Click_VBRigErr:
'=======================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub Command2_Click ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+Command2_Click"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo Command2_Click_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Call MyPrivateFormSub
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'=======================
Command2_Click_VBRigErr:
'=======================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub Command3_Click ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+Command3_Click"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo Command3_Click_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Call MyDummyPrivateFormSub
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'=======================
Command3_Click_VBRigErr:
'=======================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub Command4_Click ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+Command4_Click"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo Command4_Click_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Dim nRC As Integer
nRC = MyDummyCodeFunction%(Val(text1.Text))
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'=======================
Command4_Click_VBRigErr:
'=======================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub Command5_Click ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+Command5_Click"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo Command5_Click_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Unload Form1
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
End
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'=======================
Command5_Click_VBRigErr:
'=======================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub Form_Load ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+Form_Load"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo Form_Load_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Dim nRC As Integer
App.Title = "Demo Std"
nRC = CenterForm(Form1)
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'==================
Form_Load_VBRigErr:
'==================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub Form_QueryUnload (Cancel As Integer, UnloadMode As Integer)
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+Form_QueryUnload"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo Form_QueryUnload_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
If UnloadMode <> 1 Then
Cancel = True
Command5_Click
End If
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'=========================
Form_QueryUnload_VBRigErr:
'=========================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub MyDummyPrivateFormSub ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+MyDummyPrivateFormSub"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo MyDummyPrivateFormSub_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Call MyFullyRiggedCodeSub(Val(text1.Text))
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'==============================
MyDummyPrivateFormSub_VBRigErr:
'==============================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub
Sub MyPrivateFormSub ()
'+++ VB/Rig Begin Push +++
Const VBRIG_PROC_ID_STRING = "+MyPrivateFormSub"
Dim VBRigErr As Integer, VBRigErrMsg As String
On Error GoTo MyPrivateFormSub_VBRigErr
Call VBRig_Error(VBRIG_PUSH_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
'+++ VB/Rig End +++
Error Val(text1.Text)
'+++ VB/Rig Begin Pop +++
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'=========================
MyPrivateFormSub_VBRigErr:
'=========================
VBRigErr = Err
VBRigErrMsg = Error$
Call VBRig_Error(VBRIG_SHOW_ERROR, VBRigErr, VBRigErrMsg, VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Call VBRig_Error(VBRIG_POP_PROC_STACK, 0, "", VBRIG_MODULE_ID_STRING, VBRIG_PROC_ID_STRING)
Exit Sub
'+++ VB/Rig End +++
End Sub