vb编程时出现无效外部过程,怎么办/
DimradiusAsSingle,lengthAsDouble,areaAsDoubleradius=Text1.Textlength=2*3.14159*radius...
Dim radius As Single, length As Double, area As Double
radius = Text1.Text
length = 2 * 3.14159 * radius
area = 3.14159 * radius * radius
Text2.Caption = length
Text3.Caption = area
End Sub
Private Sub Com()
mand1_Click()
End Sub
Private Sub Command1_Click()
End Sub
Private Sub Form_Load()
End Sub 展开
radius = Text1.Text
length = 2 * 3.14159 * radius
area = 3.14159 * radius * radius
Text2.Caption = length
Text3.Caption = area
End Sub
Private Sub Com()
mand1_Click()
End Sub
Private Sub Command1_Click()
End Sub
Private Sub Form_Load()
End Sub 展开
2个回答
展开全部
把你的代码全删掉,换成这个:
Private Sub Command1_Click()
Dim radius As Single, length As Double, area As Double
radius = Text1.Text
length = 2 * 3.14159 * radius
area = 3.14159 * radius * radius
Text2.Text = length
Text3.Text = area
End Sub
Private Sub Command1_Click()
Dim radius As Single, length As Double, area As Double
radius = Text1.Text
length = 2 * 3.14159 * radius
area = 3.14159 * radius * radius
Text2.Text = length
Text3.Text = area
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询