makeString

makeString(length: Integer): String;

The makeString method of the Character primitive type returns a string of the length specified in the length parameter filled with the value of the receiver.

If the receiver is null, the returned string is filled with spaces. If the value of the length parameter is less than or equal to zero (0), an empty string is returned.

The following example shows the use of the makeString method.

vars
    charValue : Character;
begin
    charValue := "*";
    write charValue.makeString(10);    // Outputs **********
    charValue := " ";
    write charValue.makeString(10);    // Outputs           (ten spaces)
end;