Need help!!! Could not enable/disable a trigger/task
Posted: Thu Nov 29, 2007 7:43 am
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
I also tried to add/remove tfDisabled flag of a taskitem to see if I could the tricks, also no luck.
Please help
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
I also tried to add/remove tfDisabled flag of a taskitem to see if I could the tricks, also no luck.
Please help