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 

Need help!!! Could not enable/disable a trigger/task

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



Joined: 27 Nov 2007
Posts: 11

PostPosted: Thu Nov 29, 2007 7:43 am    Post subject: Need help!!! Could not enable/disable a trigger/task Reply with quote

Any thing wrong with these codes?

with TaskItem do
begin
Activate;
If Triggers.Count> 0 then Triggers[0].Enabled := not Triggers[0].Enabled;
Triggers.UpdateTriggers;
Deactivate(true);
end;

Nothing changed to the task Shocked

I also tried to add/remove tfDisabled flag of a taskitem to see if I could the tricks, also no luck.

Please help Smile
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Thu Nov 29, 2007 10:46 am    Post subject: Reply with quote

Does the Demo application work fine? (There is Disable Selected item in Quick Demos tool-button).
If it doesn't then I guess this is a due to Windows Vista. Version 2.0 will handle this.
Back to top
View user's profile Send private message
chula



Joined: 27 Nov 2007
Posts: 11

PostPosted: Wed Jan 02, 2008 4:42 am    Post subject: Reply with quote

On XP, disable/enable really work.

But on Vista, disable/enable "only seems" working, Next Run says Never, Status says Disable. But the task really still run.

I have not test 2.0 yet cuz Demo 2.0 not working.
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