Referring to the code snippet for B4A here:
www.b4x.com
In B4i, I am getting errors at line #4 and #5 when calling BC.ArrayCopy:
For B4i, I can't use the above code snippet but to copy the items one by one?
Merge two Byte Array in one
I have two Byte Array (or more) and I should merge it into one Dim A() As Byte = Array As Byte(23,45,67) Dim B() As Byte = Array As Byte(223,1,70) Dim c() As Byte c= A & B ' Come si può fare? ' I want to get it: C = (23,45,67,223,1,70) This operation I have to repeat it for several Array...

B4X:
Public Sub Merge (array1() As String, array2() As String) As String()
Dim BC As ByteConverter
Dim array3(array1.Length + array2.Length) As String
BC.ArrayCopy(array1, 0, array3, 0, array1.Length)
BC.ArrayCopy(array2, 0, array3, array1.Length, array2.Length)
Return array3
End Sub
In B4i, I am getting errors at line #4 and #5 when calling BC.ArrayCopy:
B4X:
Cannot cast type: {Type=String,Rank=1, RemoteObject=True} to: {Type=Byte,Rank=1, RemoteObject=True}
For B4i, I can't use the above code snippet but to copy the items one by one?