Pads a string with a number of occurrences of another string. Padding can be added to the left or to the right of a string. If the string is already longer than the required string length, the string is truncated.
StrPad(String, PadString, Length)
The source string.
The padding string.
The length of the string. If a positive length is specified, padding will be added to the right of the string. If a negative length is specified, padding will be added to the left of the string.
A padded string.
! Sets Variable to "Test ".
! Sets Variable to "abcabcabcaTest".