List.Clear problem

Kamac

Active Member
Licensed User
Longtime User
Okay.


I've got problems with List.Clear :sign0161:.


My app, during run from my phone, gives me an error on line 357, in java.

So this is what is in main.java on line 357:

B4X:
mostCurrent._list1.Clear();

Full error code:

B4X:
An error has occurred in sub:
main_myabbarcode_barcodefound (java line: 357)
java.lang.UnsupportedOperationException
Continue?
YES       NO


I did check. I get the same error in emulator.

Even using Debugger it stops my app on line with List1.Clear()


It seems i cannot handle lists, because i get the same error while using

List1.InsertAt(0,"")


Allright :)

Fixed. Forgot to add List1.Initialize.
 
Last edited:
Top