bb.donnay-software.com

Donnay Software Web Forums
It is currently Wed Jun 03, 2020 4:30 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Update at 12.AM MIDNIGHT
PostPosted: Tue Mar 10, 2020 3:16 am 
Offline
User avatar

Joined: Thu Feb 11, 2010 1:39 pm
Posts: 490
Hi all

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

Thanks

Joe


Top
 Profile  
 
PostPosted: Tue Mar 10, 2020 7:13 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4125
Location: Boise, Idaho USA
What should we name it?

UpdateDatabaseAt12OclockMidnight() ?

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
PostPosted: Tue Mar 10, 2020 9:46 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 12:59 am
Posts: 772
Location: Berlin, Germany
Here's the code:

Code:
FUNCTION UpdateDatabaseAt12OclockMidnight()
  MakeUpdateDatabaseAt12OclockMidnight()
RETURN .T.

_________________
Best regards,
Tom

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


Top
 Profile  
 
PostPosted: Tue Mar 10, 2020 10:43 am 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1185
unixkd wrote:
I need a function to update database at 12 o'clock midnight

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

   oThread:setStartTime(60*60*24-1)
   oThread:start( DoBackUp() )

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google [Bot] and 9 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group