B4J Question Check if object is an Array

Alessandro71

Well-Known Member
Licensed User
Longtime User
using the keyword Is I can check if a variable is a given type
This works for a String but not for Array


B4X:
Dim a As Object
a = "string"
Log(a Is String)
a = Array As String("1", "2")
Log(a Is Array)

Is there a way?
 
Top