The "Exit" event doesn't take place until the program tries to park on a
screen control. This is far to late.
You need to define a virtual in the Online task (let's call it "End This
Task", logical) and in TP set "End This Task" to True based on the value of
the MP virtual. In the Task Properties set the "End task condition" to the
variable "End This Task" and the Evaluation Condition to "Immediately". Now
when you update the "End This Task" variable to True in TP, the engine will
see this, check the end task condition and end the online program before
opening the screen. You may still see the screen flash depending on your
computer's performance. The alternative is to conditionally call the online
task only when the MP virtual allows it to run, or put a batch parent task
on it, which in many cases has some great advantages and more flexibility.
HTH
Keith
From: magicu-l@yahoogroups.com [mailto:magicu-l@yahoogroups.com] On Behalf
Of Florian Groothuis
Sent: Friday, November 21, 2008 1:57 AM
To: magicu-l@yahoogroups.com
Subject: RE: [magicu-l] Exiting an Online Task before it starts
If the condition is set in the MP why is the task called in the first
place?
If the opening of the window is the problem why not set Open Window to
that same condition?
Florian
________________________________
Van: magicu-l@yahoogroups.com <mailto:magicu-l%40yahoogroups.com>
[mailto:magicu-l@yahoogroups.com <mailto:magicu-l%40yahoogroups.com> ]
Namens
ChemaTercero
Verzonden: donderdag 20 november 2008 23:34
Aan: magicu-l@yahoogroups.com <mailto:magicu-l%40yahoogroups.com>
Onderwerp: [magicu-l] Exiting an Online Task before it starts
Hi,
In the Main Program I set one virtual to indicate if some online task
are enable to run.
In the refered online task I have placed an Evaluate 'Exit'EVENT in the
Task Prefix in the Record Prefix and Sufix but the task is still
opening the main form (of course this Evaluated is Cond by the virtual
state).
What is the right place to the 'Exit'EVENT?
I have being thinking in a bath task that runs the online task but
seems to me there must be a way to solve it in the online task.
Regards,
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]