作者hard2569 (困宝)
看板Programming
标题[问题] 急!!!排列相关问题
时间Thu May 24 21:58:15 2007
物件有:
TextBox1
TextBox2
Button1
For I = 0 To b.Length - 1
If b.Substring(I, 1) <> "," Then
c = c + b.Substring(I, 1)
Else
a(J) = c
J = J + 1
c = ""
End If
Next
For I = 0 To 3
For J = I + 1 To 4
If a(I) > a(J) Then
Temp = a(J)
a(J) = a(I)
a(I) = Temp
End If
Next
Next
Dim dis As String
For i = a.GetLowerBound() To a.GetUpperBound()
dis = dis + a(i).tostring()
If i < a.GetLowerBound Then
dis = dis + ","
End If
Next
怎麽套用在物件里面
例如TextBox1里面有:69,51,12,9,10
按Button1後
TextBox2里面出现9,10,12,51,69
要有逗点唷!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 211.20.115.43