4 Replies Latest reply: Apr 6, 2013 2:23 AM by Vadim Tsushko RSS

    Troubles including scripts containing "SUB" statements

      I am trying to modularize a bit my report, and when I try this in my master script :

       

      SUB GenerateStuff (a, b)

      // Do stuff

      END SUB

       

      LET a=foo;

      LET b=bar;

      CALL GenerateStuff('$(a)', '$(b)');

       

      It works perfectly. If I put the SUB...END SUB block in an external file and do this :

       

      $(Include='external.script')
      LET a=foo;

      LET b=bar;

      CALL GenerateStuff('$(a)', '$(b)');

       

      The CALL to my GenerateStuff subroutine fails miserably.

      Am I missing something here ?