On Saturday 23 June 2018 12:14:06 fredvs wrote:
> Hello Martin.
>
> OK, capito the use of to_single.  Thanks for the light.
>
> > Without to_single it will be triggered repetitive after setting
> > ttimer.enabled to true
> >
> > don't touch ttimer.enabled in ttimer.ontimer.
>
> OK.
>
> But how do you do for something like this:
>
> procedure ttimer.ontimer();
> begin
> if all_is_ok then dothis_and_continuetimer()
> else dothat_and_stoptimer();
> end;
>
> ?
>
dothis_and_continuetimer() does not need to change ttimer.enabled, setting 
ttimer.enabled to false in dothat_and_stoptimer() is OK.

Martin

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to