AnandGupta Expert Licensed User Longtime User Jul 22, 2023 #1 Facing problem of "AnimatedCounter" not showing values. I am calculating from resultset and showing the collection, expenses and balance values in animated counter. But for some strange reason the "Balance" counter is not showing numbers sometimes. I have put the video showing the problem. All counters have same in setting other than color. Below is the code I use to update the counter. Code: ancColl.Value = nRcpTot Sleep(1000) ancExps.Value = nPayTot Sleep(1000) ancBala.Value = nRcpTot-nPayTot Sleep(1000) I have added sleep each time, as trying to fix it, but no solution.
Facing problem of "AnimatedCounter" not showing values. I am calculating from resultset and showing the collection, expenses and balance values in animated counter. But for some strange reason the "Balance" counter is not showing numbers sometimes. I have put the video showing the problem. All counters have same in setting other than color. Below is the code I use to update the counter. Code: ancColl.Value = nRcpTot Sleep(1000) ancExps.Value = nPayTot Sleep(1000) ancBala.Value = nRcpTot-nPayTot Sleep(1000) I have added sleep each time, as trying to fix it, but no solution.
Solution B B Brian Dean Jul 22, 2023 It appears to me that the "sometimes" that the bottom counter does not show is when the value is (or should be) negative. Does this give you a clue? I don't know how the counters are supposed to work.
It appears to me that the "sometimes" that the bottom counter does not show is when the value is (or should be) negative. Does this give you a clue? I don't know how the counters are supposed to work.
B Brian Dean Well-Known Member Licensed User Longtime User Jul 22, 2023 #2 It appears to me that the "sometimes" that the bottom counter does not show is when the value is (or should be) negative. Does this give you a clue? I don't know how the counters are supposed to work. Upvote 0 Solution
It appears to me that the "sometimes" that the bottom counter does not show is when the value is (or should be) negative. Does this give you a clue? I don't know how the counters are supposed to work.
Alexander Stolte Expert Licensed User Longtime User Jul 22, 2023 #3 I think the value is negative. If you want a counter that supports negative numbers too, then have a look on my AS_AnimatedCounter. Upvote 0
I think the value is negative. If you want a counter that supports negative numbers too, then have a look on my AS_AnimatedCounter.
AnandGupta Expert Licensed User Longtime User Jul 22, 2023 #4 Brian Dean said: It appears to me that the "sometimes" that the bottom counter does not show is when the value is (or should be) negative. Does this give you a clue? I don't know how the counters are supposed to work. Click to expand... Eureka! You hit the nail. I put Code: Log(nRcpTot-nPayTot) and there it showed the -ve values. Code: 7200 2480 4480 -1630 2770 740 4740 -695 1305 -1915 2485 -485 1115 -1595 It sample data where the balance has become -ve, but I did not knew that it will make such fuss for animated counter. The real data do not have -ve balance as it is cash balance. Thanks for solving it. Upvote 0
Brian Dean said: It appears to me that the "sometimes" that the bottom counter does not show is when the value is (or should be) negative. Does this give you a clue? I don't know how the counters are supposed to work. Click to expand... Eureka! You hit the nail. I put Code: Log(nRcpTot-nPayTot) and there it showed the -ve values. Code: 7200 2480 4480 -1630 2770 740 4740 -695 1305 -1915 2485 -485 1115 -1595 It sample data where the balance has become -ve, but I did not knew that it will make such fuss for animated counter. The real data do not have -ve balance as it is cash balance. Thanks for solving it.
AnandGupta Expert Licensed User Longtime User Jul 22, 2023 #5 Alexander Stolte said: I think the value is negative. If you want a counter that supports negative numbers too, then have a look on my AS_AnimatedCounter. Click to expand... Thanks for the lead. Now I know why you made it ? Upvote 0
Alexander Stolte said: I think the value is negative. If you want a counter that supports negative numbers too, then have a look on my AS_AnimatedCounter. Click to expand... Thanks for the lead. Now I know why you made it ?