mazezone Member Licensed User Longtime User Mar 11, 2023 #1 Code: Dim PlayList As List PlayList.Add(CreateMap("test": "support")) PlayList.Get(0).Get("test") ' <-- Error toMap(PlayList.Get(0)).Get("test") ' <-- Good Sub toMap(o As Object) As Map Return o End Sub Are there any built-in functions like toMap in B4X ? (toInt, toStr, etc.).
Code: Dim PlayList As List PlayList.Add(CreateMap("test": "support")) PlayList.Get(0).Get("test") ' <-- Error toMap(PlayList.Get(0)).Get("test") ' <-- Good Sub toMap(o As Object) As Map Return o End Sub Are there any built-in functions like toMap in B4X ? (toInt, toStr, etc.).
Alessandro71 Well-Known Member Licensed User Longtime User Mar 11, 2023 #2 try with B4X: PlayList.Get(0).As(Map).Get("test") Upvote 0