Inhaltsverzeichnis

PadString

The function PadString() is passed a string, the number of characters and the characters themselves as parameters and returns the string filled with the characters up to the specified number. Furthermore, a direction can also be specified from which the filling is to be carried out.

Syntax:

PadString('String, 'Anzahl')

If no fill character is specified here, the space is used.

PadString('String', 'Anzahl', 'links oder rechts', 'Füllzeichen')

Samples:

PadString('hello', 20)

returns '                hallo'

PadString('hello', 20, 'r', '#')

returns 'hello###############'