Android Question customlistView type

DALB

Active Member
Licensed User
Hello

in this code which is in a loop, I wish to test every view.

'lst' is a list containing all the views of the designer

B4X:
For each ...
Dim w As CustomListView=lst.Get(i)
        If w.AsView Is ScrollView(or CustomListView) Then
            lab=lst.Get(i)
            doSomething
        End If
...


It doesn't work !
How can I test if 'lst.Get(i)' is a customlistview/Scrollview or it's family's type ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
 
Upvote 0

DALB

Active Member
Licensed User
after cleaning the project, it works !!!!
 
Upvote 0
Top