vb发现二义性的名称
vb发现二义性的名称怎么改啊?急死啦Dimnum1AsDouble,num2AsDoubleDimsunAsDoubleDimactAsIntegerPrivateSub...
vb发现二义性的名称怎么改啊?急死啦
Dim num1 As Double, num2 As Double
Dim sun As Double
Dim act As Integer
Private Sub form_Load()
Select Case Index
Case 0
If Text1.Text = "" Then
Text1.Text = "0"
Else
Text1.Text = Text1.Text * "0"
End If
Case 1
If Text1.Text = "" Then
Text1.Text = "1"
Else
Text1.Text = Text1.Text * "1"
End If
Case 2
If Text1.Text = "" Then
Text1.Text = "2"
Else
Text1.Text = Text1.Text * "2"
Case 3
If Text1.Text = "" Then
Text1.Text = "3"
Else
Text1.Text = Text1.Text * "3"
End If
Case 4
If Text1.Text = "" Then
Text1.Text = "4"
Else
Text1.Text = Text1.Text * "4"
End If
Case 5
If Text1.Text = "" Then
Text1.Text = 5
Else
Text1.Text = Text1.Text * "5"
End If
Case 6
If Text1.Text = "" Then
Text1.Text = 6
Else
Text1.Text = Text1.Text * "6"
End If
Case 7
If Text1.Text = "" Then
Text1.Text = 7
Else
Text1.Text = Text1.Text * "7"
End If
Case 8
If Text1.Text = "" Then
Text1.Text = 8
Else
Text1.Text = Text1.Text * "8"
End If
Case 9
If Text1.Text = "" Then
Text1.Text = 9
Else
Text1.Text = Text1.Text * "9"
End If
Case 10
If Text1.Text = "" Then
Text1.Text = "."
Else
Text1.Text = Text1.Text * "."
End If
Case 11
num1 -CDBT(Text1.Text)
Text1.Text = ""
act = 1
Case 12
num1 -CDBT(Text1.Text)
Text1.Text = ""
act = 2
Case 13
num1 -CDBI(Text1.Text)
Text1.Text = ""
act = 3
Case 14
num1 -CDBT(Text1.Text)
Text1.Text = ""
act = 4
Case 15
num1 -CDBI(Text1.Text)
Text1.Text = ""
act = 5
Case 16
num1 = 0
num2 = 0
Sum = 0
Text1.Text = ""
Case 17
num2 -CDBI(Text1.Text)
Select Case act
Case 1
Sum = num1 + num2
Case 2
Sum = num1 - num2
Case 3
Sum = num1 * num2
Case 4
Sum = num1 / num2
Case 5
Sum = num1 Mod num2
End Select
Text1.Text = ""
Text1.Text = CStr(Sum)
Case 18
End Select
End Sub
Private Sub form_Load()
num = 0
num = 0
num = 0
End Sub 展开
Dim num1 As Double, num2 As Double
Dim sun As Double
Dim act As Integer
Private Sub form_Load()
Select Case Index
Case 0
If Text1.Text = "" Then
Text1.Text = "0"
Else
Text1.Text = Text1.Text * "0"
End If
Case 1
If Text1.Text = "" Then
Text1.Text = "1"
Else
Text1.Text = Text1.Text * "1"
End If
Case 2
If Text1.Text = "" Then
Text1.Text = "2"
Else
Text1.Text = Text1.Text * "2"
Case 3
If Text1.Text = "" Then
Text1.Text = "3"
Else
Text1.Text = Text1.Text * "3"
End If
Case 4
If Text1.Text = "" Then
Text1.Text = "4"
Else
Text1.Text = Text1.Text * "4"
End If
Case 5
If Text1.Text = "" Then
Text1.Text = 5
Else
Text1.Text = Text1.Text * "5"
End If
Case 6
If Text1.Text = "" Then
Text1.Text = 6
Else
Text1.Text = Text1.Text * "6"
End If
Case 7
If Text1.Text = "" Then
Text1.Text = 7
Else
Text1.Text = Text1.Text * "7"
End If
Case 8
If Text1.Text = "" Then
Text1.Text = 8
Else
Text1.Text = Text1.Text * "8"
End If
Case 9
If Text1.Text = "" Then
Text1.Text = 9
Else
Text1.Text = Text1.Text * "9"
End If
Case 10
If Text1.Text = "" Then
Text1.Text = "."
Else
Text1.Text = Text1.Text * "."
End If
Case 11
num1 -CDBT(Text1.Text)
Text1.Text = ""
act = 1
Case 12
num1 -CDBT(Text1.Text)
Text1.Text = ""
act = 2
Case 13
num1 -CDBI(Text1.Text)
Text1.Text = ""
act = 3
Case 14
num1 -CDBT(Text1.Text)
Text1.Text = ""
act = 4
Case 15
num1 -CDBI(Text1.Text)
Text1.Text = ""
act = 5
Case 16
num1 = 0
num2 = 0
Sum = 0
Text1.Text = ""
Case 17
num2 -CDBI(Text1.Text)
Select Case act
Case 1
Sum = num1 + num2
Case 2
Sum = num1 - num2
Case 3
Sum = num1 * num2
Case 4
Sum = num1 / num2
Case 5
Sum = num1 Mod num2
End Select
Text1.Text = ""
Text1.Text = CStr(Sum)
Case 18
End Select
End Sub
Private Sub form_Load()
num = 0
num = 0
num = 0
End Sub 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询