【VB开源代码栏目提醒】:网学会员,鉴于大家对VB开源代码十分关注,论文会员在此为大家搜集整理了“7.6.7.frm”一文,供大家参考学习!
VERSION 5.00
Begin VB.Form Form10
Caption = "Form10"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form10"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 495
Left = 1680
TabIndex = 0
Top = 1080
Width = 1215
End
End
Attribute VB_Name = "Form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim Msg
On Error Resume Next
'改变错误处理的方式
Err.Clear
m = 10 / 0
'生成一个"除数为零"错误。
If Err.Number <> 0 Then
'检查错误代号
Msg = Err.Source & "产生" & Str(Err.Number) & " 号错误," & "错误原因: " & Chr(13) _
& Err.Description
MsgBox Msg, , "错误", Err.HelpFile, Err.HelpContext ' 显示错误信息
End If
End Sub
上一篇:
7.6.6.frm
下一篇:
中小企业技术创新的动力因素分析