colin0410
幼苗
共回答了15个问题采纳率:86.7% 举报
假设要比较的三个数输入在Text1,text2,text3,结果放在text4
Private Sub Command1_Click()
Dim a,b,c,d As Double
a = Val(Text1.Text)
b = Val(Text2.Text)
c = Val(Text3.Text)
If a < b Then d = a:a = b:b = d
If b < c Then d = b:b = c:c = d
If a < b Then d = a:a = b:b = d
Text4.Text = a & " ," & b & " ," & c
End Su
1年前
1