Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Apr 08, 2020 4:14 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How do I get RB to fire an event at specific times of day
PostPosted: Tue Jun 05, 2012 1:58 pm 
Offline

Joined: Fri Jun 02, 2006 1:43 pm
Posts: 209
Location: Santa Ynez, CA
I need to be able to take a reading every 15 minutes on the quarter hour. I am thinking the cleanest way to do it would be to use a Declare to get it directly from the Windows API but don't have any idea how to even start that process. The second method would be to use a timer and the date function so the timer fires on the next quarter hour. Is one way better than the other?


Top
 Profile  
Reply with quote  
 Post subject: Re: How do I get RB to fire an event at specific times of da
PostPosted: Tue Jun 05, 2012 2:22 pm 
Offline
User avatar

Joined: Sun Aug 05, 2007 10:46 am
Posts: 4931
Location: San Diego, CA
A timer is your best bet...... just be aware that other processing can cause a timer to drift... so make you interval less than 15 minutes... and have it readjust its own interval based on the clock time it reads... done correctly and your event will fire exactly every 15 minutes on the dot.

_________________
Dave Sisemore
iMac I7[2012], OSX Mountain Lion 10.8.3 RB2012r2.1
Note : I am not interested in any solutions that involve custom Plug-ins of any kind


Top
 Profile  
Reply with quote  
 Post subject: Re: How do I get RB to fire an event at specific times of da
PostPosted: Tue Jun 05, 2012 3:16 pm 
Offline

Joined: Fri Jun 02, 2006 1:43 pm
Posts: 209
Location: Santa Ynez, CA
Thanks for the tip.


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

All times are UTC - 5 hours


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group