M Makumbi Well-Known Member Licensed User Longtime User Jan 21, 2019 #1 Please help how can i refesh the badger to show the current true counts after a record has been removed from my table without closing and opening my app Code: Copy Dim intCount As Int intCount = Starter.SQL1.ExecQuerySingleResult("SELECT count(Id) as Id FROM SMSlist") If intCount > 0 Then Dim ms As Int = intCount Else Dim ms As Int = 0 End If Log(ms) badger1.SetBadge(btnSend, ms)
Please help how can i refesh the badger to show the current true counts after a record has been removed from my table without closing and opening my app Code: Copy Dim intCount As Int intCount = Starter.SQL1.ExecQuerySingleResult("SELECT count(Id) as Id FROM SMSlist") If intCount > 0 Then Dim ms As Int = intCount Else Dim ms As Int = 0 End If Log(ms) badger1.SetBadge(btnSend, ms)
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2019 #2 Your code looks correct. What happens when you run it? Upvote 0
M Makumbi Well-Known Member Licensed User Longtime User Jan 22, 2019 #3 Erel said: Your code looks correct. What happens when you run it? Click to expand... i wanted the badger to show current count after the deletion from the table has occurred not waiting for me to close the app and then re initialize again (Like a refresh or requery similar to the one used in ms access forms Upvote 0
Erel said: Your code looks correct. What happens when you run it? Click to expand... i wanted the badger to show current count after the deletion from the table has occurred not waiting for me to close the app and then re initialize again (Like a refresh or requery similar to the one used in ms access forms
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2019 #4 Your code looks correct. I recommend you to create small project without the database and only with the badge feature. If it doesn't work then upload it. Upvote 0
Your code looks correct. I recommend you to create small project without the database and only with the badge feature. If it doesn't work then upload it.