[求助]错误提示
Private Sub Command1_Click()
Dim a, b, c, dert As Integer
Dim p, r, x1, x2 As Single
a = Val(Text1.Text)
If a = 0 Then MsgBox "a 不能为0": Exit Sub
b = Val(Text2.Text)
c = Val(Text3.Text)
dert = b * b - 4 * a * c
p = -b / (2 * a)
If dert >= 0 Then
If dert > 0 Then
r = Sqr(dert) / (2 * a)
x1 = p + r
x2 = p - r
Else
x1 = p
x2 = p
End If
Label5.Caption = "x1=" & x1
label6.Caption = "x2=" & x2
Else
r = Sqr(-dert) / (2 * a)
one = "x1=" & p
Label5.Caption = one&"+"&r&"i"&chr(13)&"x2="&p&"-"&r&"i" 请问这语句有错误吗
End If
End Sub