StrFixCharsL

Pads or truncates the left side of a string to a fixed length using characters.

Syntax:

StrFixCharsL(base-string, pad-string, length)

Parameters:

(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.

Returns:

(s) fixed size string.

 

This function is indentical to StrFixLeft. It "fixes" the length of a string, either by truncating it on the left, or by prepending enough copies of pad-string to achieve the desired length.

Example:


a = StrFixCharsL("Henry", " ", 15)
b = StrFixCharsL("Betty", " ", 15)
c = StrFixCharsL("George", " ", 15)
Message("Spaced Names", StrCat(a, b, c))
See Also:

StrInsert, StrFix, StrFixBytes, StrFixBytesL, StrFixChars, StrFixLeft, StrFill, StrLen, StrOverlay, StrTrim