5 Replies Latest reply on Feb 21, 2008 6:25 PM by (elic_elico)

    removing the last character from a string

      I try to move a paragraph from one textFrame to another.
      my code is: myParagraph.move(LocationOptions.before,myTextFrame.insertionPoints.item(-1));
      the problem is that the end of paragraph sign moves together with the paragraph.
      i think that i have to write:
      myString=myParagraph - the last character of the paragraph;
      myString.move(LocationOptions.before,myTextFrame.insertionPoints.item(-1));
      how do you write the first line in js?