Hi,
I have two single dimension arrays:
These are ID numbers
arrOne(0) = 12
arrOne(1) = 12
arrOne(2) = 13
These are $ Values which belong to the above ID numbers
arrTwo(0) = 20
arrTwo(1) = 30
arrTwo(2) = 40
What I need to do is search through the first array for duplicate ID numbers, when one is found I need to take the corresponding values and add them together and either replace the duplicate with one field or make a new array with all the unique values,
would be great if someone could help me out with this because im on the edge of a mental breakdown if i cant get this to go,
thanks in advcane
I have two single dimension arrays:
These are ID numbers
arrOne(0) = 12
arrOne(1) = 12
arrOne(2) = 13
These are $ Values which belong to the above ID numbers
arrTwo(0) = 20
arrTwo(1) = 30
arrTwo(2) = 40
What I need to do is search through the first array for duplicate ID numbers, when one is found I need to take the corresponding values and add them together and either replace the duplicate with one field or make a new array with all the unique values,
would be great if someone could help me out with this because im on the edge of a mental breakdown if i cant get this to go,
thanks in advcane