Sign in Join
FPDoc Onlineexperiment

SameLFMTypeName function

In unit LResources

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

Declaration

pascal
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.

Added in LCL version 4.0.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.