Tidy, but does it do what you expect? I'd be tempted to take both arrays, Split(","), then iterate through one in a fashion like this:
vb Code:
A = String1.Split(",") 'Array 1 B = String2.Split(",") 'Array 2 'A quick check. if A.Length<>B.Length then 'They aren't the same. End if 'A slower check 'Since they are both string arrays, this should work: Array.Sort(A) Array.Sort(B) For x=0 to A.Length-1 If A(x) <> B(x) Then 'THey aren't the same Exit For End If Next






Reply With Quote