I would like to recommend using Lists instead of Arrays as parameters in your routines "when possible" (it's always possible).
instead of:
The reason is that this way you can call:
but you cannot call:
B4X:
Sub MyRoutineWithList(lstValues As List)
End Sub
instead of:
B4X:
Sub MyRoutineWithArray(Values() As Int)
End Sub
The reason is that this way you can call:
B4X:
MyRoutineWithList(Array As Int(1,2,3))
MyRoutineWithList(lstData)
but you cannot call:
B4X:
MyRoutineWithArray(lstData)