2 Replies Latest reply on Aug 30, 2014 4:33 AM by eutheneia

    ExtendScript oddities with incrementing an array value

    eutheneia

      Only for my curiosity (I am a very absolute beginner with ExtendScript), but also to better understand Extendscript; I have:

       

      while (myTextFrame.overflows) {

           var gb = myTextFrame.geometricBounds;

           ++gb[2];

           myTextFrame.geometricBounds = gb;

      }

       

      Why can't I do, instead

       

           while (myTextFrame.overflows) ++myTextFrame.geometricBounds[2];   ?

       

      It produces an infinite loop...

       

       

      Thanks

       

      Roberto