Mashiane Expert Licensed User Longtime User Nov 23, 2018 #1 Ola How do I determine the type of value a map value is e.g. string, map, list, int, float etc Is it possible? Thanks
Ola How do I determine the type of value a map value is e.g. string, map, list, int, float etc Is it possible? Thanks
MarkusR Well-Known Member Licensed User Longtime User Nov 23, 2018 #2 with "is" (should be a object) or GetType B4X: Dim a As String="abc" If MainForm Is Form Then Log("Jo") End If Dim O As Object O = MainForm If O Is Canvas Then Log("Canvas") Else Log("Not a Canvas") End If Log(GetType(MainForm)) Log(GetType(Canvas1)) Log(GetType(a)) Upvote 0
with "is" (should be a object) or GetType B4X: Dim a As String="abc" If MainForm Is Form Then Log("Jo") End If Dim O As Object O = MainForm If O Is Canvas Then Log("Canvas") Else Log("Not a Canvas") End If Log(GetType(MainForm)) Log(GetType(Canvas1)) Log(GetType(a))