Can I add a time-delay during stages of a Control Procedure?
Can I add a time-delay during stages of a Control Procedure?
I'm using LegEasy 6.53 and frequently need to run a series of 19 procedures.
I'm wondering if it is possible to create a Control Procedure with adding a short (5-second) time delay between each procedure in order to allow my computer to recover and avoid a system crash.
Is this possible?
Re:Can I add a time-delay during stages of a Control Procedure?
There are ways to do this but if you avoid the problem is hard to say.
In 6.53 you don't have any timer so you would have to resort to a loop inside your control procedure.
define "timer" time.
run procedure "one" .
timer := current time .
while timer+5<current time do
end.
run procedure "two" .
timer := current time .
while timer+5<current time do
end.
etc.
I'm not sure this would actually alleviate the problem.
The problem is most likely that you in a control procedure run everything in one scope so the problem that cause the GPF build up.
Is it always the same DQL that end up crashing or does it crash at different places?
You can try to run them as a chain menu.
If this was DE85 or DE9 the options would have been much wider.