Just starting with B4XPages and noticed that ResumableSub is not behaving the same as in a non B4XPages project.
In an activity based project I can run this from Main with no problem:
and I can use the produced list fine.
In a B4XPages project though I get this error:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to anywheresoftware.b4a.BA$ResumableSub
If I run this not as a ResumableSub:
There is no problem.
Is this a known limitation of B4XPages or am I doing something wrong?
RBS
In an activity based project I can run this from Main with no problem:
B4X:
Dim rs As ResumableSub = CSV2List(File.DirRootExternal & "/PhonePats", "menu_props2.csv", True, 44, 34, True, 10, -1)
Wait For (rs) Complete (lstCSV As List)
Log(lstCSV.Size)
and I can use the produced list fine.
In a B4XPages project though I get this error:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to anywheresoftware.b4a.BA$ResumableSub
If I run this not as a ResumableSub:
B4X:
Dim lstCSV As List
lstCSV = CSV2List(File.DirRootExternal & "/PhonePats", "menu_props2.csv", True, 44, 34, True, 10, -1)
Log(lstCSV.Size)
There is no problem.
Is this a known limitation of B4XPages or am I doing something wrong?
RBS