Android Question problem to use list

Should we guess what you have tried and how?
Show us your not working code. Best is to upload a small project which shows the Issue. Use File->Export as zip from the IDE
 
Upvote 0
B4X:
Sub check (position As Int) As Boolean
    For i=0 To lanswer.Size-1
        If lanswer.Get(i)=position Then
            Return True
        End If
    Next
End Sub

B4X:
If check(position)=False Then
        lanswer.Add(position)
    End If

I used a multi-panel and the value of each panel I want to save to when the user clicks again to see if they have already clicked on that panel.
 
Last edited:
Upvote 0
solved
B4X:
Sub check (position As Int) As Boolean
    For i=0 To lanswer.Size-1
    dim item=lanswer.get(i) as typemode
        If item.id=position Then
            Return True
        End If
    Next
 
Upvote 0
Back
Top