Originally posted by Killer42
Although it was very helpful i did not have the desired results.
now according to u i have to sort the array in step 2 here is how i am doing it using bubble sort ,but it is giving me an error.
Step 2 to sort array
Code:
'sorting of array For i = LBound(channelarray) To UBound(channelarray) - 1 For k = i + 1 To Ubound(channelarray) - 1 <-------- this step gives error overflow. If channelarray(i) > channelarray(k) Then tmpsort = channelarray(i) channelarray(i) = channelarray(k) channelarray(k) = tmpsort End If Next Next
As per the output if i dont sort it the output has something like this
0101100300 1
0101100100 4
0101100300 1
0101100100 4
0101100300 1
0101100100 4
0101100300 11
0101100400 1
0101100100 4
0101100300 11
0101100400 1
0101100100 4
although some count are right some are wrong,it is giving me the count of homeid suppose if homeid has repeated 11 time then it gives
0101100300 11
as u can see sir,anyways sir pls tell why array sort is giving me error.
and what changes should i make.
Thank u sir for quick response ,effort and time .
Comment