Run a function at a certain time of day
Posted
#1
(In Topic #1161)
Regular

I'm struggling a bit with this one.
Assume I have a subroutine called "run_analysis()"
Whats the syntax to call this routine every day at 1:30 PM ?
Bonus question:
Whats the syntax to call this routine every day at 1:30 PM … on weekdays only ?
thanks for any help
cheers
Posted
Guru

Code (gambas)
- .Delay = 60000 ''Delay of 1 min
- .Trigger
- .Start
- ''Do important stuff!
Posted
Regular

When the [START] button is clicked, the code in the button event is an endless loop which monitors stuff (say… greenhouse environment).
Within the loop is a the "time of day" snippet which calls a subroutine to save some data to a file every day at 1:30 pm.
Thanks gentlemen, I think this is what I was looking for…
Cheers
1 guest and 0 members have just viewed this.


