3 Replies Latest reply: Jan 20, 2017 12:31 AM by Natthapol K RSS

    I cannot call Sub routine from the Module.

    Natthapol K

      Here is the script in the module.

      --------------------------------------------------------------------------------------

      function NextContractDate(ContractLength,ContractStart)

        f = 1

        do while f

        NextDate = DateAdd("m",ContractLength, ContractStart)

        if NextDate < date() then

        ContractStart = NextDate

        f = 1

        else

        f = 0

        end if 

        loop

        NextContractDate = NextDate * 1

      end function

       

       

      sub C

        msgbox NextContractDate(9, 40909)

      end sub

       

       

      function TestMe(a,b)

        TestMe = a + b

      end function


      --------------------------------------------------------------------------------------

      Here is the script in the Qlikview document.

      Call C



      I don't know the reason why I am unable to call sub C from the script. Could you please figure out this issue?


      Thank you very much indeed.