Hi,
I am facing strange problem. for my daily routine, i always need timer and i was trying to build one for myself using AI2.
I have tried to replicate exactly following timer examples:
I noticed, just by chance, that my count down timer is skipping 1 o 2 seconds in between at random intervals. eg. downcounting from 15, it will start 14,13,12,10, 9,8,7,6,4,3,2,1 here 11th and 5th second is skipped. this happens randomly consequently my counted one minute is less than actual 1 minute.
i read all notes given on above websites ---
Working with the Timer I find that the TimerInterval is
from the time you exit the .Timer procedure until it restarts, ie if
TimerInterval is 1000ms (1 second) and it takes 45ms for the phone to do
your blocks the total time between any one block will be 1045ms.
Remember that your App is
not the only thing running on the phone. If it's time for your Timer to
go off and the phone is busy doing something else, your event will be
delayed until the phone can get to it.
But i am wondering, why my other timer apps run perfectly and not the one created in AI2 ? Is it related to the precision of numbers handled by AI2 ?
I have downloaded
this timer and run on two different phones, but even this skips seconds while counting.
I am facing same problem with other app i am building for my daily work, converting basic metric units, e.g. millisec to hours, picolitre to litre so on. i am noticing that the values of division or product are not displayed accurately. i tried converting to decimal function but it displays so many zeros after actual value which makes my screen aesthetically very bad and confusing.
lastly a quick question, I need to display values in text box which are very low or very high e.g. 0.000001 in scientific notation like 1E-6. how can i do that ? because using label i can do it but when i want to display in text box it shows all those annoying zeros , and if i make set decimal 10 digits or so then i see long trail of zeros(e.g. 0.0000123000).
any suggestions.
regards
yusuf