Private Sub Command1_Click()
Dim a As Single
Dim b As Single
Dim c As Single
Dim s As Single
Dim p As Single
a = Text1.Text
b = Text2.Text
c = Text3.Text
p = (a + b + c) / 2
s = Sqr(p * (p - a) * (p - b) * (p - c))
Label1.Caption = "所求面积为" & s
End Sub
Private Sub Text1_Change()
End Sub
Private Sub Text1_Click()
Text1.Text = ""
End Sub
Private Sub Text2_Change()
End Sub
Private Sub Text2_Click()
Text2.Text = ""
End Sub
Private Sub Text3_Change()
End Sub
Private Sub Text3_Click()
Text3.Text = ""
End Sub
Dim a As Single
Dim b As Single
Dim c As Single
Dim s As Single
Dim p As Single
a = Text1.Text
b = Text2.Text
c = Text3.Text
p = (a + b + c) / 2
s = Sqr(p * (p - a) * (p - b) * (p - c))
Label1.Caption = "所求面积为" & s
End Sub
Private Sub Text1_Change()
End Sub
Private Sub Text1_Click()
Text1.Text = ""
End Sub
Private Sub Text2_Change()
End Sub
Private Sub Text2_Click()
Text2.Text = ""
End Sub
Private Sub Text3_Change()
End Sub
Private Sub Text3_Click()
Text3.Text = ""
End Sub