RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.LeftBStr Function

Returns the substring of a specified number of bytes that appears at the start of a string.

Pascal
function LeftBStr(const AText: AnsiString; const AByteCount: Integer): AnsiString;
C++
AnsiString LeftBStr(const AnsiString AText, const int AByteCount);

StrUtils

LeftBStr returns the leading bytes of AText up to a length of AByteCount bytes.

Note: LeftBStr assumes all characters are one byte long, and does not behave correctly if AText contains multi-byte characters. To handle all strings correctly, use LeftStr.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!