2 Replies Latest reply: Jun 15, 2012 8:07 AM by Manisha Choudhary RSS

    Store loop in QVD file

    Manisha Choudhary

      Hi,

       

      I have a loop like:

       

       

      LET vWeeks=0;

       

      FOR counter = 2012 to year(Today()) +1

       

      FOR counter1 = 1 to 12

       

      IF WeekDay(MakeDate(counter, counter1)) = 'Sun' then

      $(vWeeks)=4;

      ELSEIF WeekDay(MakeDate(counter, counter1)) = 'Mon' then

      $(vWeeks)=4;

      ELSEIF WeekDay(MakeDate(counter, counter1)) = 'Tue' then

      $(vWeeks)=5;

      ELSEIF WeekDay(MakeDate(counter, counter1)) = 'Wed' then

      $(vWeeks)=5;

      ELSEIF WeekDay(MakeDate(counter, counter1)) = 'Thu' then

      $(vWeeks)=5;

      ELSEIF WeekDay(MakeDate(counter, counter1)) = 'Fri' then

      $(vWeeks)=4;

      ELSE

      $(vWeeks)=4;

       

        NEXT counter1

      ENDIF

       

                NEXT counter

       

      Now I want to store the above loop in a qvd so that i can use it in a different qvw file

       

      Can anyone help me on this.

       

       

      Thanks

      Manisha