StrFixBytesL

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

Syntax:

StrFixBytesL(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 specifies the length in bytes.

Returns:

(s) fixed size string.

 

If either 'base-string' or 'pad-string' is a Unicode string, then 'length' must be an even number (each character has two bytes).

 

Example:


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

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