Option Base 1
Private Sub Command1_Click()
Font.size = 30
Dim n As Integer
Dim size As Integer
size = Int(Val(Me.Text1.Text))
size = Int(Val(Me.Text1.Text))
Dim slerdum() As Integer
ReDim slerdum(size)
n = LBound(slerdum)
While n <= UBound(slerdum)
slerdum(n) = Int(Rnd * 1000)
n = n + 1
Wend
Dim swap As Integer
m = LBound(slerdum)
While m <= UBound(slerdum) - 1
n = LBound(slerdum)
While n <= UBound(slerdum) - m
If slerdum(n) < slerdum(n + 1) Then
swap = slerdum(n)
slerdum(n) = slerdum(n + 1)
slerdum(n + 1) = swap
End If
n = n + 1
Wend
m = m + 1
Wend
While n <= UBound(slerdum)
Print slerdum(n)
n = n + 1
Wend
End Sub
Private Sub Text1_Change()
1
Private Sub Command1_Click()
Font.size = 30
Dim n As Integer
Dim size As Integer
size = Int(Val(Me.Text1.Text))
size = Int(Val(Me.Text1.Text))
Dim slerdum() As Integer
ReDim slerdum(size)
n = LBound(slerdum)
While n <= UBound(slerdum)
slerdum(n) = Int(Rnd * 1000)
n = n + 1
Wend
Dim swap As Integer
m = LBound(slerdum)
While m <= UBound(slerdum) - 1
n = LBound(slerdum)
While n <= UBound(slerdum) - m
If slerdum(n) < slerdum(n + 1) Then
swap = slerdum(n)
slerdum(n) = slerdum(n + 1)
slerdum(n + 1) = swap
End If
n = n + 1
Wend
m = m + 1
Wend
While n <= UBound(slerdum)
Print slerdum(n)
n = n + 1
Wend
End Sub
Private Sub Text1_Change()
1
End Sub