Call using USEUNIT in vbscript does not work
I have function1(param1) defined in script Unit1 and I want to call function1(param1) from script Unit2. Thus, I have done the following according to documentation:
'In Unit2 script, did
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'USEUNIT Unit1
function1(param1) 'Method 1
Unit1.function1(param1) 'Method 2
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
None of the above methods worked. Am I missing something?
Any input will be greatly appreciated.
There is something about naming conventions for USEUNIT calls which I can't quite recall?
Hang on ....
Got it.
https://support.smartbear.com/viewarticle/73884/#Calling
(The second bullet point)
If the function name and unit name are the same, the call will only work if prefixed with the unit name. Sounds like whats happening to you.