Forum Discussion

mcastellanos's avatar
mcastellanos
Occasional Contributor
9 years ago

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 '''''''...
  • Colin_McCrae's avatar
    Colin_McCrae
    9 years ago

    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.