SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cyclical alarm with no expiration under Non-Vista machines

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent
View previous topic :: View next topic  
Author Message
rhett.price



Joined: 17 Jan 2014
Posts: 2

PostPosted: Wed Mar 12, 2014 3:02 pm    Post subject: Cyclical alarm with no expiration under Non-Vista machines Reply with quote

I really need a way to set a "Cyclical" type alarms for Non-Vista to never expire. I can do this with Vista version by never setting Duration. But with Non-Vista machines - some type of Duration seems to be required - otherwise I get an error. Hence my code below. However this only sets it to run for a year.

If not Scheduler.RunningVistaOrLater then
FTask.Triggers[0].Duration := 365 * 24 * 60; // run for 1 year

Any way to fix this?

- Rhett
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Sat Mar 15, 2014 4:19 am    Post subject: Reply with quote

Just set
Code:
HasEndDate := False;
KillAtDurationEnd := False;

for TTrigger.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group