Dim r As Single
Const PI = 3.14
Private Sub Command1_Click()
Text2 = PI * r ^ 2
End Sub
Private Sub Command2_Click()
Text3 = 2 * PI * r
End Sub
Private Sub Text1_lostfocus()
If Not IsNumeric(Text1) Then
Text1 = ""
Text1.SetFocus
MsgBox "输入有非数字字符,请重新输入"
End If
End Sub
怎样将text1中字符赋值给r