how time will run in reverse mode [message #314281] |
Wed, 16 April 2008 05:07  |
owais_baba
Messages: 289 Registered: March 2008 Location: MUSCAT
|
Senior Member |
|
|
hi all
my question is this how the time will run in reverse mode like
10-9-8-7-6-5-4-3-2-1-0 my probem is this i have saved time in database example in database i have given 10 minutes clock that will be running on my canvas which will be in revers mode if running time will match from my saved time than form should be i have already run the executing clock with the help of timer
but its running in normal mode not in reverse mode
thansk
owais
|
|
|
Re: how time will run in reverse mode [message #314448 is a reply to message #314281] |
Wed, 16 April 2008 13:53   |
solisdeveloper
Messages: 48 Registered: March 2008 Location: Mexico
|
Member |
|
|
You can't make a timer run backwards, since the interval parameter won't acept negative values.
Why don't you just set your timer to 1000 miliseconds so that it expires every second, and in your when-timer-expired enter whatever code is necesary to make it look like your doing the count down. i.e
:global.v_secondsleft := :global.v_secondsleft - 1;
:blk_item := :global.v_seconds_left
You can do the very same thing to control the minutes. And finally a timer that expires after 10 minutes just to stop the whole thing.
That's way i would do it, unless there would be a clock component that could do what your trying to do, but I honestly don't know if there's any
|
|
|
|
|
|
|