Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Paolo F Cantoni on December 06, 2018, 03:18:08 pm
-
Being careful coders, we put option explicit at the top of each VBScript.
We had a weird bug today which we traced down to an undefined variable name NOT being picked up by the option explicit setting.
option explicit
dim GoodOne
GoodOne = 10
BadOne = 20
should fail on the second assignment, but doesn't.
We've discovered that if in Debug mode, the option explicit functionality DOESN'T WORK!
So to check for option explicit you need to run the script in a normal manner.
"It's a bug, !"
Reported,
Paolo
-
Yeah, ran into that one a couple of times as well.
If you forget to test your script in "run" mode and ship it like that you get complaints from the users saying the script won't work.
Makes you look like a fool. :-\
Geert