Page 1 of 1

Comparing two arrays and extract the differences

Posted: Mon Jul 07, 2008 8:04 am
by danrah
I have two one-dimensional arrays starting from index 0. The first array stores the complete list of students' names and has (for example) 500 elements and the second array consists of a part of the larger array. How can i extract the elements that exist in the first array and not in the second array.
Thanks in advance,

Re: Comparing two arrays and extract the differences

Posted: Mon Jul 07, 2008 10:49 am
by koen.h

Re: Comparing two arrays and extract the differences

Posted: Mon Jul 07, 2008 11:43 am
by danrah
Thanks, But it doesn't work and the function only returns the elements of the first array.My array contains unicode characters.What should I do to overcome this problem?

Re: Comparing two arrays and extract the differences

Posted: Mon Jul 07, 2008 6:40 pm
by koen.h
Could you give an example? Eg two example arrays and the array you need as a result.