1 Reply Latest reply: Mar 8, 2013 7:48 PM by Rob Wunderlich RSS

    Subroutines cannot be nested too deep in .qvs files?

    Kevin Pinto

      I have been encountering this strange problem with QlikView QVS script files and wonder if anyone else has encountered it.

       

      I have a subroutine defined:

       

      SUB A

       

      END SUB

       

      The sub works perfectly when it is directly in the load script of a QVW file.

      It also works when it is in a QVS file, QVS1, that is directly included in the load script of a QVW file.

      But if I put in a deeper level, QVS2, then I get a script error when I call the subroutine.  At this point, the call chain is like this:

       

      QVW file load script > QVS1 > QVS2 > SUB A

       

      The error is simply: Script Error:  Call Sub A

       

      For the moment, I have worked around this by placing the sub at level QVS1.  The call chain looks like this:

       

      QVW file load script > QVS1 > SUB A

       

      This works just fine.

       

      Any ideas?