Search found 5 matches

by partha
Thu May 12, 2005 7:00 am
Forum: VCL Scheduling Agent
Topic: Problem in Enable/Disable a Task
Replies: 6
Views: 19687

Thanks, it solves this. :)
by partha
Thu May 12, 2005 4:45 am
Forum: VCL Scheduling Agent
Topic: Problem in Enable/Disable a Task
Replies: 6
Views: 19687

I check directly in windows scheduler. Also with,
Task.EditWorkItem
by partha
Thu May 12, 2005 3:25 am
Forum: VCL Scheduling Agent
Topic: Problem in Enable/Disable a Task
Replies: 6
Views: 19687

I tried both

Task.Deactivate(True);
and
Task.Save;

None of them work. I do not get an error but the status is not updated.

I am not displaying it to any control so I do not need a refresh.
by partha
Wed May 11, 2005 3:33 pm
Forum: VCL Scheduling Agent
Topic: Problem in Enable/Disable a Task
Replies: 6
Views: 19687

Problem in Enable/Disable a Task

Hello, I am having problem in enabling/disabling a task. I am using the folowing code but the changes are not getting saved: var Index : Integer; Task: TTaskItem; begin for Index := 0 to Scheduler.Count - 1 do begin Task := Scheduler.Items[Index]; Task.Activate; if SetActive then //SetActive is proc...
by partha
Tue May 10, 2005 6:50 am
Forum: VCL Scheduling Agent
Topic: Error Modifying Trigger Type
Replies: 1
Views: 11037

Error Modifying Trigger Type

Hello, I am using the following code with D7: Task.Activate; with Task.Triggers.Add do begin TriggerType := ttDaily; // adding this line produces the error BeginDate := ...; EndDate := ...; StartTime := ...; Duration := ...; Interval := ...; end; Task.Triggers.UpdateTriggers; Task.Deactivate(True); ...