-
Topic
-
Hi,
I have written a macro for creating new tasks. Everything works fine.
But when I start the macro in remote mode the macro is very slow,
about 4 or 5 seconds. In online mode, directly connected to the
post office, the same macro is finished within 1 second.
How to speed up?Here a sample of the macro:
Set MyNewTask = GroupWise.Account.Calendar.Messages.Add(“GW.MESSAGE.TASK”, fgwPersonal)
With MyNewTask
.FromText = GroupWise.Account.Owner.DisplayName
.OnCalendar = TRUE
.Priority = fgwNormal
.AssignedDate = StartDateCtrl.Date
.StartDate = StartDateCtrl.Date
.DueDate = EndDateCtrl.Date
.Completed = FALSE
if SubjectCtrl.Text <> “” then
.Subject = SubjectCtrl.Text
end if
if MemoCtrl.Text <> “” then
.BodyText.PlainText = MemoCtrl.Text
end iffor i = 1 to len(PriorityCtrl.text)
Bu = Mid(PriorityCtrl.text, i, 1)
if (asc(Bu) >= 48) AND (asc(Bu) <= 57) then
TaskPrio = TaskPrio & Bu
else
TaskCat = TaskCat & UCase(Bu)
end if
next
.TaskCategory = TaskCat
.TaskPriority = TaskPrio
End With
- You must be logged in to reply to this topic.