Dim V1 As Double, P As Integer, result As Boolean
Private Sub Command1_Click(Index As Integer)
If result Then
Text1.Text = " "
End If
result = False
If Index = 10 And r = 0 Then
Text1.Text = Text1.Text & "."
r = 1
Else
Text1.Text = Text1.Text & Index
End If
End Sub
Private Sub Command2_Click(Index As Integer)
V1 = Val(Text1.Text)
Text1.Text = ""
Text1.SetFocus
P = Index
End Sub
Private Sub Command3_Click()
V2 = Val(Text1.Text)
Select Case P