behnam_tr Active Member Licensed User Longtime User Aug 9, 2019 #1 how can i get all page counts in b4xtable ??
Erel B4X founder Staff member Licensed User Longtime User Aug 9, 2019 #2 What do you mean with page counts? Upvote 0
behnam_tr Active Member Licensed User Longtime User Aug 9, 2019 #3 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 Upvote 0
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
Erel B4X founder Staff member Licensed User Longtime User Aug 11, 2019 #4 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: Code: Copy If B4XTable1.mCurrentCount > 0 Then Dim NumberOfPages As Int = Ceil(B4XTable1.mCurrentCount / B4XTable1.VisibleRowIds.Size) Log(NumberOfPages) End If Upvote 0
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: Code: Copy If B4XTable1.mCurrentCount > 0 Then Dim NumberOfPages As Int = Ceil(B4XTable1.mCurrentCount / B4XTable1.VisibleRowIds.Size) Log(NumberOfPages) End If