Page 1 of 1

how to ignore repeated values in an array.

Posted: Sun Mar 28, 2004 1:36 pm
by mahmood
say i have an array like this:
myarray[0]= 1 ;
myarray[1]= 3 ;
myarray[2]= 1 ;
myarray[3]= 2 ;
myarray[4]= 2 ;
myarray[4]= 1 ;
now i need a way to list just not repeated values. in this example i need:
myarray[0] which is 1
myarray[1] which is 3
myarray[3] which is 2

how do i achive this?

Posted: Sun Mar 28, 2004 2:04 pm
by qads

Posted: Sun Mar 28, 2004 2:48 pm
by m3mn0n
Browsing around in the Manual for a particular function that you need, but don't know exists is always a good idea.

You can download a copy for yourself from the link in my signature.

I recommend the "Windows CHM" file. :)