Android Question problem to use list

mohammad3250

New Member
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

mohammad3250

New Member
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

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…