Beja Expert Licensed User Longtime User Nov 26, 2014 #2 I would deduct either one from the other.. if the result is non-zero then they are not equal.. duh Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2014 #3 Do you mean two arrays of bytes? B4X: Sub AreEqual(b1() As Byte, b2() As Byte) As Boolean If b1.Length <> b2.Length Then Return False For i = 0 to b1.Length - 1 If b1(i) <> b2(i) Then Return False Next Return True End Sub Upvote 0
Do you mean two arrays of bytes? B4X: Sub AreEqual(b1() As Byte, b2() As Byte) As Boolean If b1.Length <> b2.Length Then Return False For i = 0 to b1.Length - 1 If b1(i) <> b2(i) Then Return False Next Return True End Sub