API:System.SysUtils.TUnicodeEncoding.GetCodePage

From RAD Studio API Documentation

Delphi

function GetCodePage: Cardinal; override;

C++

virtual unsigned __fastcall GetCodePage(void);

Properties

Type Visibility Source Unit Parent
function class protected
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TUnicodeEncoding

Description

Returns the code page. {{#multireplace:System.SysUtils.TUnicodeEncoding.GetCodePage|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:System.SysUtils.TEncoding.GetCodePage|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:System.SysUtils.TEncoding.GetCodePage|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Returns the code page.

GetCodePage returns an integral value representing the code page. GetCodePage is a virtual method; if the runtime type of Self (this in C++) is TEncoding, then an invalid code page is returned.

See Also