String.PadLeft

Parent Previous Next

String.PadLeft.

The string is expanded by padding from the left.


Syntax.


 PadLeft(Integer maxLength; String padChar) : String

 


Arguments:


Example:


 String s;

 s := ("0123").PadLeft(6, " ");   //Now s == "  0123";

 s := ("0123").PadLeft(9, "ab");  //Now s == "aaaaa0123";