when i have more data
maybe i had 2 or 3 page in b4xtable
i want to know page count
for example i can get or set currentpage with b4xtable1.currentpage
but i dont know how many pages i have
Note that the number of pages is not always known. It will be unknown when there is a search term.
You can put this code in DataUpdated event to calculate the number of pages:
B4X:
If B4XTable1.mCurrentCount > 0 Then
Dim NumberOfPages As Int = Ceil(B4XTable1.mCurrentCount / B4XTable1.VisibleRowIds.Size)
Log(NumberOfPages)
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.