Re: Bubble Sort not working
The And i < 3 looks like it's not helping the cause.
You can find a standard bubblesort linked in my signature.
Re: Bubble Sort not working
Code:
Private Sub Command2_Click()
BubbleSort1 txtResult(i)
End Sub
I tried calling it, but nothing happened. Do I lack something?
Re: Bubble Sort not working
The function is expecting a native array, not an object array, so it won't know what to do with a control array. Store the textbox values to a native array first, sort them, then write the sorted array items back out to the textboxes.
EDIT: By "native array" I mean an array of longs or strings or whatever.