2 Replies Latest reply on Apr 19, 2012 3:30 PM by MAC800

    Shorten this code?!?!

    MAC800

      Basically I want to add the values of 100 castmembers

       

       

      tTex1 = value(member("sh1").text

      tText2 = value(member("sh2").text

      tText3 = value(member("sh3").text

      tText4 = value(member("sh4").text

      tText5= value(member("sh5").text

      tTex6= value(member("sh6").text

      tTex7 = value(member("sh7").text

      tTex8 = value(member("sh8").text

      tTex9 = value(member("sh9").text

      tTex10 = value(member("sh10").text

      tTex11 = value(member("sh11").text

      ~~~~~~~~~~~~~~~~~~~~~~~~~~

      Continued to 100

      ~~~~~~~~~~~~~~~~~~~~~~~~~~

      tTex100 = value(member("sh100").text

       

       

      ~~~~~~~~~~~~~~~~~then this code~~~~~~~

       

      mText = tText1 + tText2 + tText4........ + tText100

       

      Member("car total ").text =mText