Ricky D Well-Known Member Licensed User Longtime User Nov 19, 2012 #1 I have a progressbar on one of my activities. I have set it to indeterminate. It shows at the start of a loop where I scroll through an sql cursor to get fields from the db into a Table class. I notice that the progressbar stays unmoving. I expect it to animate. regards, Ricky
I have a progressbar on one of my activities. I have set it to indeterminate. It shows at the start of a loop where I scroll through an sql cursor to get fields from the db into a Table class. I notice that the progressbar stays unmoving. I expect it to animate. regards, Ricky
Erel B4X founder Staff member Licensed User Longtime User Nov 19, 2012 #2 Add a DoEvents call in this loop. You can add something like: B4X: For i = . to ... 'this is your loop ... If i Mod 100 = 0 Then DoEvents Next Upvote 0
Add a DoEvents call in this loop. You can add something like: B4X: For i = . to ... 'this is your loop ... If i Mod 100 = 0 Then DoEvents Next
Ricky D Well-Known Member Licensed User Longtime User Nov 19, 2012 #3 Thanks Erel that worked perfectly. regards, Ricky Upvote 0