RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.RightBStr Function

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

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

StrUtils

RightBStr returns the trailing bytes of AText up to a length of AByteCount bytes.

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

Copy 

TrimRight 

AnsiEndsText 

AnsiEndsStr 

AnsiRightStr

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