javaninger
Member
I currently have an array with 20 counters. I would like to find the top (highest .ACC value) five of the total 20 and use that information.
I need to compare all 20 counters.
Take largest 5.
Counter0.ACC = 2
Counter1.ACC = 4
Counter2.ACC = 3
Counter3.ACC = 7
Counter4.ACC = 10
Counter5.ACC = 2
so on....
(I could do this as string or some other method)
TopFive0 = Counter4
TopFive1 = Counter3
TopFive2 = Counter1
so on....
Any thoughts? I am thinking the data could be stored in a UDT.
Thanks,
John
I need to compare all 20 counters.
Take largest 5.
Counter0.ACC = 2
Counter1.ACC = 4
Counter2.ACC = 3
Counter3.ACC = 7
Counter4.ACC = 10
Counter5.ACC = 2
so on....
(I could do this as string or some other method)
TopFive0 = Counter4
TopFive1 = Counter3
TopFive2 = Counter1
so on....
Any thoughts? I am thinking the data could be stored in a UDT.
Thanks,
John