B4J Question differentiate between Maps and Lists

Blueforcer

Well-Known Member
Licensed User
Longtime User
I have a map that contains maps and lists.

How can I check if Key=X is a list or a map?

Because At the end I need to have the single maps and the maps in the lists.
 

Blueforcer

Well-Known Member
Licensed User
Longtime User
unfortunately this map is generated by xml2map.

Screen Nr 0 returns as a map and Screen Nr 1 returns as a list of maps if i want to get the "Show" ´s

B4X:
 <Screen Nr="0">
    <Show Nr="0">
      <Type>Picture</Type>
      <Nr>0</Nr>
      <Pos>0,0,10000,10000</Pos>
    </Show>
  </Screen>
  <Screen Nr="1">
    <Show Nr="0">
      <Type>Text</Type>
      <Nr>1</Nr>
      <Pos>0,0,10000,470</Pos>
    </Show>
    <Show Nr="1">
      <Type>ScreenButton</Type>
      <Nr>0</Nr>
      <Pos>0,470,1667,2250</Pos>
    </Show>
  </Screen>
 
Upvote 0
Top