
Adding seconds to time field?
I know how to add days to a date field you just do Date1 + 3 to increase the date by three days.
But how do you increase a time field for instance if you have stored a time as some sort of temp field tTime and you want to do something with a process say 10 seconds after this time so that you have allowed enough time for a process to happen such as sending an email. How do you programme:
Timefield (value) + 10 seconds? if you just put Timefield + 10 presumably it doesnt know if this is seconds, minutes or hours. Do you turn it into some sort of digital time first?
Re:Adding seconds to time field?
In your question there are basically two different questions and you open a can of worms.
It does not format time fielsd (: : ) in variables but if you return it in a field it will be.
However neither of this fix your problem which is a delay.
2. Delay
In a DQL you can run a loop.
DQL
define "MyTimer" time .
message "HIt enter to start" window .
MyTimer := current time+10 .
while MyTimer>current time do
Message concat("Time Left: ",MyTimer-current time) .
end
message "That was it, now we can go on" window .
However you can also just use wait(10) .
http://www.dataease.com/dg3_HelpView/?PageID=10342&field1=*Wait*
define "Retval" text .
message "HIt enter to start" window .
retval := wait(10) .
message "That was it, now we can go on" window .