Need help "Adding TIME"
Posted: Sat Jan 06, 2007 9:55 pm
Hi Everybody,
I need a function that will allow me to add seconds to a stored time.
I need to create a loop that will add 4 seconds to each record in the file.
Something like:
I need to make sure that it will adjust the minutes or hours as they pass over 60 seconds (or 60 minutes etc...)
Any Ideas?
Thanks
Jeff
I need a function that will allow me to add seconds to a stored time.
I need to create a loop that will add 4 seconds to each record in the file.
Something like:
Code: Select all
cTime := "12:10:58"
GO TOP
DO WHILE ! EOF()
MyDbf->TimeField := cTime
cTime = cTime + 4seconds //This is where I need help
SKIP
ENDDO
Any Ideas?
Thanks
Jeff