LeftBStr

Copies Count characters starting at the left of a string.

Declaration

Source position: strutils.pp line 94

  function LeftBStr(const AText: AnsiString; const AByteCount: SizeInt)
                    : AnsiString;

Description

LeftBStr returns a string containing the leftmost AByteCount bytes from the string AText . If AByteCount is larger than the length (in bytes) of AText , only as many bytes as available are returned.

Errors

None.

See also

Name Description
AnsiLeftStr Copies a number of characters starting at the left of a string
LeftStr Copies Count characters starting at the left of a string.
MidBStr Copies a number of characters starting at a given position in a string.
RightBStr Copy a given number of characters (bytes), counting from the right of a string.