Hello all,
When I have this line:
DebugDest = hs.ReplaceVariables("$$GLOBALVAR:debugdest:")
In a script in tenScripting 3 inside the Class definition but outside of a Sub or Function, it executes fine.
When I export the script and execute in a manual test event, the line generates this error in HS3:
Compiling script C:\Program Files (x86)\HomeSeer3\scripts\DebugTest.vb: Exception has been thrown by the target of an invocation.
If I move that line inside the Main Sub, it will execute fine.
Any thoughts on why that is? I really don't understand the difference.
When I have this line:
DebugDest = hs.ReplaceVariables("$$GLOBALVAR:debugdest:")
In a script in tenScripting 3 inside the Class definition but outside of a Sub or Function, it executes fine.
When I export the script and execute in a manual test event, the line generates this error in HS3:
Compiling script C:\Program Files (x86)\HomeSeer3\scripts\DebugTest.vb: Exception has been thrown by the target of an invocation.
If I move that line inside the Main Sub, it will execute fine.
Any thoughts on why that is? I really don't understand the difference.
Comment