Skip to content

TObject.ClassNameIs

Check whether the class name equals the given name.

Declaration

Source position: objpash.inc line 223

public 
  class function ClassNameIs(const name: string) : Boolean;

Description

ClassNameIs checks whether Name equals the class name. It takes of case sensitivity, i.e. it converts both names to uppercase before comparing.

See also

Name Description
ClassInfo Return a pointer to the type information for this class.
ClassName Return the current class name.
ClassType Return a "class of" pointer for the current class