📄 error.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text2
Height = 375
Left = 720
TabIndex = 2
Top = 1200
Width = 735
End
Begin VB.TextBox Text1
Height = 375
Left = 720
TabIndex = 1
Top = 360
Width = 735
End
Begin VB.CommandButton Command1
Caption = "error"
Height = 495
Left = 1080
TabIndex = 0
Top = 2280
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub command1_click()
Dim x, y As Integer
Dim z As Integer
Dim res As Integer
On Error GoTo pro1
x = Text1.Text
y = Text2.Text
z = x + y
pro1:
res = MsgBox("重试一次", 49)
If res = 1 Then
Resume
Else
Exit Sub
End If
End Sub
Private Sub Command2_Click()
Error (51)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -