Android Question MAP VS LIST in debug and relase mode.

netsistemas

Active Member
Licensed User
Longtime User
A json file has map and/or list

if the are only 1 element, the file/entry is a map (not a list).
This is importante know it.

And:

in debug mode no error are detected, but release get the error.

B4X:
        Dim ListaCam As List
        ListaCam = Campos.Get("element")
        'do this:'
        If Campos.Get("element") Is Map Then 'ListaCam es un MAPA ( {} ) porque solo hay un campo o valor. Cuando hay mas de un elemento, internamente es una lista ( [] ).
                
            'Log(ListaCam)
            Log("mm3")
            ...
            ...

how is not the same efect betwen release and debug?
 

KMatle

Expert
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…