Hi again,,
one last question about errors.
The RunCode() and RunScript() functions do they return some value that indicate an error ?
Error handeling SDK
Moderators: Dorian (MJT support), JRL
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
Error handeling SDK
Best Regards
Steen Jakobsen
DM Software A/S
Steen Jakobsen
DM Software A/S
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
They return the value of MACRO_RESULT so will return whatever you set it to:
Let>MACRO_RESULT=whateveryouwant
So you have control over what they return. If you have a detectable error you could set it to MACRO_RESULT and then, yes, it would return the error.
Let>MACRO_RESULT=whateveryouwant
So you have control over what they return. If you have a detectable error you could set it to MACRO_RESULT and then, yes, it would return the error.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact:
Yes .. but then again since I'm unable to trap syntax errors or missing SRT's or wrong complex expressions
and the script just continues as if nothing is wrong then the errorhandeling
is not so secure.
I'm looking very much forward to the future version where the script can be
manged in terms of trapping syntax errors and so on.
The SDK work very well but this is a soft spot ..
and the script just continues as if nothing is wrong then the errorhandeling
is not so secure.
I'm looking very much forward to the future version where the script can be
manged in terms of trapping syntax errors and so on.
The SDK work very well but this is a soft spot ..
Best Regards
Steen Jakobsen
DM Software A/S
Steen Jakobsen
DM Software A/S
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
-
- Pro Scripter
- Posts: 110
- Joined: Thu Apr 08, 2010 6:11 am
- Location: Hørsholm, Denmark
- Contact: