iOS Question TableView [SOLVED]

moore_it

Well-Known Member
Licensed User
Longtime User
Hi all,

i have this problem :
I've add two rows in a tableview

When i read the TV using a for next cycle using numberofsection.
this is the code i use .

B4X:
For i = 0 To L13_TV01.NumberOfSections
        Dim tc As TableCell = L13_TV01.GetItems(i).Get(0)
        Dim pa As Panel = tc.CustomView
        .....
next

but i read the first row and the program quit without message.
Where i wrong ?

Thanks in advice
 
Last edited:

moore_it

Well-Known Member
Licensed User
Longtime User
Ok friends i've resolved !

this is a solution

no search for numberofsection but for GetItems

The code right is :

B4X:
For Each tc As TableCell In TV.GetItems(0)
    Dim pa As Panel = tc.CustomView
    For Each v As View In pa.GetAllViewsRecursive
        ... an so on 
    Next
next
 
Upvote 0
Top