[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Finds a data module with the specified name, excluding designer data modules.
Source position: forms.pp line 1230
public function TScreen.FindNonDesignerDataModule( |
const DataModuleName: string |
):TDataModule; |
DataModuleName |
|
Name of the data module to locate in the method. |
Data module with the specified name, or Nil.
Visits the data module instances in the internal list, and compares the Name property for the TDataModule instances to the value in DataModuleName. CompareText text is called to perform a case-insensitive comparison for the values. TDataModule instances with csDesigning in the ComponentState property are ignored; these are design-time data modules used by the Lazarus IDE.
The return value contains the TDataModule instance with the name in DataModuleName, or Nil when the data module list is empty or the name in DataModuleName is not found in the list.
Used when an Application loads its components using the LCL streaming mechanism. Ignores the designer forms and data modules (where ComponentState contains csDesigning) handled by the Lazarus IDE.
|
Finds the data module with the specified name. |
Version 3.2 | Generated 2024-02-25 | Home |