Board index » delphi » D5 - GetComponentNames - closed data modules
Ghost
Delphi Developer |
Ghost
Delphi Developer |
D5 - GetComponentNames - closed data modules2003-11-12 05:14:54 PM delphi176 Hi All, In a property editor when getting a list of components the following code gets me all TMyComponents on the form and any TMyComponents in datamodules visible to that form (eg. DataModule1.MyComponent1). Designer.GetComponentNames(GetTypeData(system.TypeInfo(TMyComponent)), AddProc); If the datamodule is not open, however, the components in that datamodule are not returned. Is there any way (in D5) to get a full list of components when the associated datamodule is not open? Thanks, Ghost |
Constantine Yannakopoulos
Delphi Developer |
2003-11-13 07:04:20 PM
Re:D5 - GetComponentNames - closed data modules
Author := "Ghost";
| If the datamodule is not open, however, the components in that | datamodule are not returned. Is there any way (in D5) to get a full | list of components when the associated datamodule is not open? Only if you open all modules manually in your code. This could take a lot of time however. -- Constantine |