I created a task that removes itself when an external variable x,is changed:
x = 0;
deltatime = 2;
datatable = {}
RunScheduledTask[
x++;
If[
x >= 6,
Beep[]; RemoveScheduledTask[$ScheduledTask]; datatable,
AppendTo[datatable, x]
],
deltatime];
When variable x reaches value x = 6, I want to see the completed datatable, but this does not occur; the datatable can be seen in other cell.
Why I cannot display datatable in the same cell with RunScheduledTask?
It is possible to send the Print messages eventually included in RunScheduledTask directly to notebook and not to MessageWindow?
Comments
Post a Comment