Private Sub CommandButton1_Click()
Dim arr
arr = Array(TextBox1.Value, TextBox2.Value, TextBox3.Value)
For x = 0 To 1
For y = x + 1 To 2
If arr(x) < arr(y) Then
a = arr(x)
arr(x) = arr(y)
arr(y) = a
End If
Next y
Next x
TextBox4.Value = Join(arr, ">")
End Sub
追问额,排出来顺序不对。。。。。。。。。。。。。。。。
追答怎么不对了?从大到小用>连接,不是吗?
是因为你的数据类型不对吗?
本回答被提问者采纳