Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
SteenJakobsen
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
-
Contact:
Post
by SteenJakobsen » Thu Sep 23, 2010 6:32 am
Hi,
How can I remove or disable an event handler created with OnEvent?
OnEvent workd great in 12.08 in other 12.0x versions it was very slow .. thanks for improving it
Best regards Steen
Best Regards
Steen Jakobsen
DM Software A/S
-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Thu Sep 23, 2010 11:00 am
There's no way presently to disable an OnEvent, but you can build something into your code to do it:
Code: Select all
OnEvent>blabla,.....,subroutine
Let>bla_event_enabled=1
...
//now turn event handler off
Let>bla_event_enabled=0
...
SRT>subroutine
If>bla_event_enabled=1
... code here
Endif
END>subroutine
-
SteenJakobsen
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
-
Contact:
Post
by SteenJakobsen » Thu Sep 23, 2010 7:30 pm
ok.. yes ofcource ..

thanks
Best Regards
Steen Jakobsen
DM Software A/S