hi,
i cast Data from a SQLite File, put it first to a Map (in a loop) and this Map to a Custom Type with a Map
This Custom Type is send to Android Device via B4XSerializator.
From B4A to B4J it works, but from B4J to B4A not.
In B4J in Debug Mode the Map shows o.k., but in B4A i cant cast the List Entry to String
whats wrong?
i cast Data from a SQLite File, put it first to a Map (in a loop) and this Map to a Custom Type with a Map
This Custom Type is send to Android Device via B4XSerializator.
B4X:
Type MyMessage (Befehl As String, DatenS As String, DatenL As List, DatenM As Map,Success As Boolean)
Private mm_out As MyMessage
Private m_tmp As Map
m_tmp.Initialize
do....
m_tmp.Put(k,DBUtils.ExecuteMemoryTable(SQL_I,"SELECT * FROM Log",Null,0,0)) 'or with WHERE'
loop
mm_out.DatenM = m_tmp 'mm_out is send via B4XSerializator to the Android Device
From B4A to B4J it works, but from B4J to B4A not.
In B4J in Debug Mode the Map shows o.k., but in B4A i cant cast the List Entry to String
B4X:
L_in.Initialize2(mm_In.DatenM.Get(k)) 'mm_in is the same Custom Type (MyMessage....), k is ok, L_In.Size return the correct size
Dim val_2(14) As String = L_in.Get(i1) 'error, cant cast to String
whats wrong?