Skip navigation
Currently Being Moderated

how to add indent to here tab in the string

Jan 5, 2012 7:44 PM

hello friends,


i want insert SpecialCharacters.INDENT_HERE_TAB; into the string object, how can i insert.

my javascript code is as follows,


function (commentText,authorQueryTextFrame,queryNumber) {

      //queryNumber and commentText are of string type and authorQueryTextFrame is textframe object.


      var commentText=commentText.replace("[AU:",queryNumber + "\t");


      // i want to insert SpecialCharacters.INDENT_HERE_TAB after "\t",but it will added a number into the string.

       var str = queryNumber + "\t";




       commentText= commentText +"\r";


       authorQueryTextFrame.contents += commentText;


       var lastPara =  authorQueryTextFrame.paragraphs.lastItem();


       lastPara.appliedParagraphStyle = "Author Query Text";



will u tell me the rigth way to add this.




  • Currently Being Moderated
    Jan 5, 2012 9:08 PM   in reply to TD_TAD

    This is a scripting issue, post it in the Scripting forum to get quick and better response. That forum is highly active and you are in with a more better chance of getting your scripting question answered over there.


    Manan Joshi.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points