System.TypInfo.SamePropTypeName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SamePropTypeName(const Name1, Name2: String): Boolean;
function SamePropTypeName(const Name1, Name2: ShortString): Boolean;
function SamePropTypeName(const Name1: string; const Name2: ShortString): Boolean;
function SamePropTypeName(const Name1: ShortString; const Name2: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall SamePropTypeName(const System::UnicodeString Name1, const System::UnicodeString Name2)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.TypInfo.pas
System.TypInfo.hpp
System.TypInfo System.TypInfo

Description

Checks whether the two given property names are equal.

SamePropTypeName compares the two given property names represented as ShortStrings. Use this function rather than the equality operator, because the internal format in which these names are stored might be changed in the future.

See Also