Android Question non iterable list items in a For Each Next

67biscuits

Member
I am trying to run a For each loop

For Each unit As String In pl
ListView1.AddSingleLine(unit)
Next

this is a dummied down version...

the list
Public preChange As String = "sterling, farthing, ha'penny, penny, pence, tuppence, thrupence, shilling, bob, Guinea"

[IDE message - 2:13:10]
An error occurred.
B4A line: 65
For Each s As String In pl
src\b4a\example\main.java:458: error: incompatible types: String cannot be converted to IterableList
final anywheresoftware.b4a.BA.IterableList group11 = _pl;
^

any suggestions would be appreciated.
Thanks
 

67biscuits

Member
Sorry, I tried to amend the post to reflect that I had figured it out, but I can't find the 'Edit post" button. Apologies for that.
The app's direction has altered and am now wrestling with customlistviews and classes.
 
Upvote 0
Top