Forum Discussion

googleid_111566's avatar
12 years ago

Calling function declared in anoter project

Hi everyone!

I have 2 projects in project suite.

Project 1 has Unit 1

Project 2 has Unit 2



I have a function, declared in unit 1



How do i can to call this function in unit 2?
  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 3 rankChampion Level 3
    Hi Maria,



    You should add Unit1 from Project1 as existing item to Project2 and reference it from Unit2 with the help of 'Useunit Unit1' clause.

    Note: Adding unit as existing one will not make a copy of it, but will reference existing file. This means that the change in Unit1 made from any project (either Project1 or Project2) will be reflected in all projects that reference this unit.