Forum Discussion

randall's avatar
randall
Contributor
7 years ago

I get an erroneous "Cross references are not allowed." message

I have two JavaScript files - Main_TrussStudio and DesignTrusses1A.  When I attempt to run the test from the Main script file the script view jumps to the DesignTrusses1A file and presents an error d...
  • tristaanogre's avatar
    tristaanogre
    7 years ago

    Nope, still doesn't answer my question.

     

    Open up the script file ToolbarFunctions_TSLayout

     

    What USEUNIT statements, if any, are in that file.  Circular references are chained in.  So, even if Main is not DIRECTLY mentioned in DesignTrusses1A, if there is a reference to Main in ToolbarFunctions_TSSLayout, that may generate the error as well.

     

    So... basically, go down the line and examine ALL your code units and make sure that NONE of them reference back to your Main unit.