Update at 12.AM MIDNIGHT

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Update at 12.AM MIDNIGHT

#1 Post by unixkd »

Hi all

I need a function to update database at 12 o'clock midnight

Thanks

Joe

User avatar
rdonnay
Site Admin
Posts: 4722
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Update at 12.AM MIDNIGHT

#2 Post by rdonnay »

What should we name it?

UpdateDatabaseAt12OclockMidnight() ?
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1165
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Update at 12.AM MIDNIGHT

#3 Post by Tom »

Here's the code:

Code: Select all

FUNCTION UpdateDatabaseAt12OclockMidnight()
  MakeUpdateDatabaseAt12OclockMidnight()
RETURN .T.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
Auge_Ohr
Posts: 1405
Joined: Wed Feb 24, 2010 3:44 pm

Re: Update at 12.AM MIDNIGHT

#4 Post by Auge_Ohr »

unixkd wrote:I need a function to update database at 12 o'clock midnight

Code: Select all

PROCEDURE BackUp() 
LOCAL oThread := Thread():new() 

   oThread:setStartTime(60*60*24-1) 
   oThread:start( DoBackUp() )
greetings by OHR
Jimmy

Post Reply