1 Reply Latest reply on Feb 5, 2010 11:24 AM by Flex harUI

    Appending blank spaces at the end of String

    194642537 Level 1

      Hi All ,


      I have a string aStr with value "India".  I have to display this string with entire length 40. For that I have to append blank spaces to this string upto it's fixed length event if it's actual content length is less.

      var aStr:String = new String(40);
      aStr = "India";

      But it should occupy spaces upto it's length after content.