[求助]加法竖式演算错误
Dim a1, aw, result As Single
Private Sub Command1_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text2.SetFocus
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Paint()
Text1.SetFocus
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text3.SetFocus
a1 = CDb1(Text1.Text) ;这一行的CDb1出现错误
a2 = CDb1(Text2.Text)
result = a1 + a2
Text3.Text = CStr(result)
End If
End Sub
错误提示:子程序或函数未定义
请问哪里出问题,我是照着书本敲代码的
刚接触VB,什么都不懂,请多多指教
[此贴子已经被作者于2007-4-4 13:02:12编辑过]