Wish [BANano] [SOLVED]- 1.21 Map Object Enhancements

Mashiane

Expert
Licensed User
Just found something else whilst trying to work on themes...

B4X:
Dim fName As String = "Anele"
    Dim sName As String = "Mbanga"
    Dim a As Map = CreateMap("firstname":"Anele Mbanga","surname":"Mbanga")
    Log(a)
    Dim b As Map = CreateMap("firstname":fName,"surname":"Mbanga")
    Log(b)
    Dim c As Map = CreateMap("firstname" : fName, "surname" : "Mbanga")
    Log(c)
The first (a) and the last maps (c) work, the second one (b) returns an error of 'fname' not defined. The only difference between the b and the c map is the spacing.
 
Top