Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to add indent to here tab in the string

New Here ,
Jan 05, 2012 Jan 05, 2012

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.replace("]","");

     

       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.

thanks

tahir.

TOPICS
SDK
927
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 05, 2012 Jan 05, 2012
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines