Pads or truncates a string to a fixed length using characters.
StrFix (base-string, pad-string, length)
(s) base-string string to be adjusted to a fixed length.
(s) pad-string appended to base-string if needed to fill out the desired length. If pad-string is null, spaces are used instead.
(i) length character count of the string.
(s) fixed size string.
This function is identical to StrFixChars function.This function "fixes" the length of a string, either by truncating it on the right, or by appending enough copies of pad-string to achieve the desired length.
a = StrFix("Henry", " ", 15) b = StrFix("Betty", " ", 15) c = StrFix("George", " ", 15) Message("Spaced Names", StrCat(a, b, c))
which produces:
StrInsert, StrFixBytes, StrFixBytesL, StrFixChars, StrFixCharsL, StrFixLeft, StrFill, StrLen, StrOverlay, StrTrim