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.
String(40) does not reserve a string of 40 chars. You'll probably just have
to append spaces.