System.SysUtils.ByteLength
Delphi
function ByteLength(const S: string): Integer;
C++
extern DELPHI_PACKAGE int __fastcall ByteLength(const System::UnicodeString S);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Returns the length of a given string in bytes.
Call ByteLength to obtain the size of a string in bytes. ByteLength calculates the size of the string by multiplying the number of characters in that string to the size of a character. For example, for the string "John", ByteLength returns 8.
See Also