| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Mar 22, 2010 6:32 pm Post subject: VDS 6, Timer, Datetime confusion |
|
|
Ok, I'm confused on how to set a CTDOWN timer in VDS 6 since it requires the binary time instead of the older datetime format style. My problem is that my crusty old brain isn't clicking on how to use @datetime() in conjunction in setting the timer.
| Code: | | TIMER START,1,CTDOWN,@datetime(??????) |
How do I get datetime to tell the timer I want 2 minutes?
Thanks,
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
cabaptista Newbie

Joined: 14 Mar 2010 Posts: 21 Location: Lisbon, Portugal
|
Posted: Tue Mar 23, 2010 9:50 am Post subject: |
|
|
Hi Garret,
Maybe what you need is this:
| Code: | | TIMER START,1,CTDOWN,@DATETIME(,00:02:00) |
Please check timers.dsp example on demos for VS6 and search for line
| Code: | | timer start,2,Ctdown,@fadd(@dlgtext(CTDOWNdays),@datetime(,@dlgtext(CTDOWNhour):@dlgtext(CTDOWNminutes):@dlgtext(CTDOWNseconds))) |
Hope it helped.  _________________ César Baptista, Portugal
NavegaçãoAzul.com |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Tue Mar 23, 2010 10:07 am Post subject: |
|
|
VDS 6:
Code:
timer start,1,Ctdown,@fadd(A,@datetime(,B:CC:DD))
so
timer start,1,Ctdown,@fadd(0,@datetime(,0:05:00))
A = Days
B = Hours
CC = Minutes
DD = Seconds
Will be a :Timer1CTDown in 5 minutes
regards
Nathan |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Mar 23, 2010 3:59 pm Post subject: |
|
|
Cabaptista, thanks, but I did note VDS 6 which uses a different method than VDS 5. Rubes got it.. Thanks to both of you  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|