[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LResources' (#lcl)

SameLFMTypeName

Indicates whether the specified LFM resource matches the specified unit and type names.

Declaration

Source position: lresources.pp line 530

function SameLFMTypeName(

  aUnitname: string;

  aTypename: string;

  LFMTypename: string

):Boolean;

Arguments

aUnitname

  

Unit name used in the comparison.

aTypename

  

Type name for the form resource used in the comparison.

LFMTypename

  

Qualified LFM resource name compared to the unit and type arguments.

Function result

True when the specified values refer to the same LFM resource.

Description

SameLFMTypeName is Boolean function used to determine whether the type name specified in LFMTypeName refers to the same definition as the one represented by the AUntiName and ATypeName arguments. It accounts for optional unit information in LFMTypeName. If a unit name prefix is not included in LFMTypeName, CompareText is called to perform a case-insensitive comparison of the values in ATypeName and LFMTypeName. When unit information is present, AUnitName is included in the comparision when it is not an empty string.

SameLFMType is used in the implementation of the source code file manager in the Lazarus IDE.

Version info

Added in LCL version 4.0.


Version 4.0 Generated 2025-05-03 Home