Hello,
In a library I wrote I create a List of Map objects and pass it to an event
The List itself is initialized as well as all Maps in this list.
In the B4A event I have something like:
So I cast each item in the headers list as a Map.
In runtime on this line I get a class cast exception.
As a note: when I create a List of Maps in B4A all is OK.
Any idea ?
Thanks
In a library I wrote I create a List of Map objects and pass it to an event
The List itself is initialized as well as all Maps in this list.
In the B4A event I have something like:
B4X:
Sub pop_DownloadAllMessagesCompleted (Success As Boolean, Size As Int, Count As Int, Messages As List, headers As List)
For lcv = 0 To Count -1
Dim hdr As Map
hdr = headers.Get(lcv)
ListView1.AddSingleLine(hdr.Get("SUBJECT"))
Next
End Sub
So I cast each item in the headers list as a Map.
In runtime on this line I get a class cast exception.
As a note: when I create a List of Maps in B4A all is OK.
Any idea ?
Thanks
Last edited: