Private Function bArraysAreEqual(asArray1 As Variant, asArray2 As Variant, iCompMethod As Integer) As Boolean Dim sArrayString1 As String Dim sArrayString2 As String If IsArray(asArray1) And IsArray(asArray2) Then '//Array sortieren Call QuickSort(LBound(asArray1), UBound(asArray1), asArray1) Call QuickSort(LBound(asArray2), UBound(asArray2), asArray2) '//Erzeugen eines Strings welcher verglichen werden kann. sArrayString1 = Implode(asArray1) sArrayString2 = Implode(asArray2) '//Vergleichen der Strings If StrCompare(sArrayString1, sArrayString2, iCompMethod) = 0 Then bArraysAreEqual = True End If End If End Function