AWaterfalls
asked on
MSFlexgrid countingsort
Dear Experts, I have a MSFlexGrid1 With 5 colums of integer data, max integer is 1 to 50.
I would like to countsort these colums, so that I end up with a list in a second MSFlexgrid2, of the counted and sorted data like the list below. In the second MSFlexgrid2 there should be only two colums as shown below. The code will need to identify the individual numbers from 1 to 50, and show how many times they are repeated in the 5 columns. I am using vb6. Your help would be appreciated, thank you.
Number Frequency
1 80
2 65
3 45
4 90
etc etc
50 120
I would like to countsort these colums, so that I end up with a list in a second MSFlexgrid2, of the counted and sorted data like the list below. In the second MSFlexgrid2 there should be only two colums as shown below. The code will need to identify the individual numbers from 1 to 50, and show how many times they are repeated in the 5 columns. I am using vb6. Your help would be appreciated, thank you.
Number Frequency
1 80
2 65
3 45
4 90
etc etc
50 120
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Version 2, Worked very well. Thank you, you get maximum points for that answer.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for AWaterfalls's comment #a38731535
for the following reason:
It Just Worked First Tme.
Accepted answer: 0 points for AWaterfalls's comment #a38731535
for the following reason:
It Just Worked First Tme.
Hi AWaterfalls,
Thank you,
you should accept my answer as solution.
Please read here how to close the question:
https://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=24
Thank you,
you should accept my answer as solution.
Please read here how to close the question:
https://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=24
Accept: eemit {http:#a38729340}
In her post {http:#a38731535}
Asker said:
"Version 2, Worked very well. Thank you, you get maximum points for that answer."
In her post {http:#a38731585}
Asker accidentally accept his own Answer:
(Version 2, Worked very well. Thank you, you get maximum points for that answer.)
Asker said as Grading Comment:
"It Just Worked First Tme."
eemit
In her post {http:#a38731535}
Asker said:
"Version 2, Worked very well. Thank you, you get maximum points for that answer."
In her post {http:#a38731585}
Asker accidentally accept his own Answer:
(Version 2, Worked very well. Thank you, you get maximum points for that answer.)
Asker said as Grading Comment:
"It Just Worked First Tme."
eemit
ASKER
I am sorry but I am New to all this, however the first solution gave only zeros for the frequency on the second flexgrid. While solution 2 gave the frequencies of the balls as per requested by me. Thank you for your help, and I look forward to using experts again in the future.
Open in new window