Private Sub Command1_Click()
On Error GoTo ww
Text3.Text = Text1.Text / Text2.Text
End Sub
ww:
If Error.Number = 11 Then
MsgBox "除数不能为零,请重新输入!", 16, "错误"
Else
MsgBox "出现其它错误", 16, "错误"
End If
Resume Next
End Sub
运行程序,出现标签未定义的错误