When I extract the map data from the saved map file as shown below, I get the error on line 62 as shown below: But if I put the Type members data in a map before saving it , it works well. How would you read the data from the saved map and make it display the 'Type' members. Thank you
B4X:
Type StudentType(id As Int, name As String, myclass As String, section As String)
B4X:
Sub DisplayData
Dim MyMap As Map
MyMap.Initialize
MyMap=File.Readmap(File.DirInternal, "maptrivia")
For Each s As StudentType In MyMap 'line 62 error
s = MyMap.GetValueAt(0)
Log($"${s.id} ${s.name} ${s.myclass} ${s.section}"$)
Next
End Sub
B4X:
B4A line: 62
For Each s As StudentType In MyMap
src\b4a\example\main.java:491: error: incompatible types: Map cannot be converted to IterableList
final anywheresoftware.b4a.BA.IterableList group4 = _mymap;