Hello. I am new to programming and I am trying to find a way to sort an array of numbers. For Example, if I have 30 textboxes with a number inside, I think i could insert the numbers to this array using a For...Next statement. But then, I would like to sort the numbers once they are in the array so I could then put them into another set of textboxes(top 10). I could also do this using a For...Next statement, but sorting the array is what I need help with. Any help will be greately appreciate it. Thanks.
cfrutos
0
Newbie Poster
Recommended Answers
Jump to Postu can use sequential/bubble/quick sort techniques. here is one of the logic for sorting
Dim a(5) as Integer Dim i as Integer Dim j as Integer a(0) = 10 a(1) = 9 a(2) = 13 a(3) = 45 a(4) = 7 For i = 0 to 4 …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.