Forum Discussion

jsr78's avatar
jsr78
New Contributor
14 years ago

Calling a script from project1 to project2

Hi,



I have created project1 and project2 in porject suit. i want to call script i.e. in project1 into project2. i have tried USEUNIT but it works with in same project i.e. only i can call script in only same project (i.e. in project1). what i want is to call the script between two different projects.



Thanks,

Srinivas

4 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Srinivas,



    To get what you need you should add script unit from project1 to project2 (right-click on Scripts node in project2, select Add|Existing item command from the context menu and point to the unit within project1 folders structure). See "Calling Routines Declared in Another Project" help topic for more details.
  • Hello

    I have a question joining this.



    I have a project naming ProjectSuite1 with a script
    naming Script1 and "object library" associated NameMapping1.



    I have a second project naming ProjectSuite2 with a scrip naming script2 and "object library" associated NameMapping2.



    In script2, I placed top of the script "'USEUNIT Script1" and
    in Sub Main, call the Script1 by Script1.Script1 ()



    I don't know how to add in NameMapping2 (ProjectSuite2) the "object library" NameMapping1



    can
    you help me?



    thank you