Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi So komme ich an Controls die an TDataSource hängen (https://www.delphipraxis.net/83291-so-komme-ich-controls-die-tdatasource-haengen.html)

radekj 30. Dez 2006 15:23

Datenbank: egal • Zugriff über: egal

So komme ich an Controls die an TDataSource hängen
 
Man muss an die protected DataLink (TList) Property von TDataSource kommen.

Man braucht eine Access-Class wegen "protected" property "DataLink":
Delphi-Quellcode:
TDataSourceAccess = class(TDataSource) // <- meine Allgemeine Access-Class für TDataSource
private
protected
published
  property DataLinks;
end;
jetzt bekomme ich die Liste der Controls die an DataSource1 hängen über:
Delphi-Quellcode:
:= TDataSourceAccess(DataSource1).DataLinks;
ciao
radekj


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:48 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz