Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi FindComponent auf andere Unit? (https://www.delphipraxis.net/42905-findcomponent-auf-andere-unit.html)

Antigo 25. Mär 2005 18:55


FindComponent auf andere Unit?
 
Hi,
Ich habe in meiner Form2 eine ganze Menge Edit Felder die ich von meiner Form1 aus ändern möchte. Dafür eignet sich bei mir bestens die Findcomponent Funktion weils sie alle name1, name2, name3... heissen. Allerdings funktioniert das FindComponent bei mir nur innerhalb einer Unit, ausserhalb kann ich irgendwie nicht zugreifen, heisst:
TEdit(FindComponent('Form2.name'+inttostr(i))).tex t:='...';
funktioniert nicht.

hat jemand eine Idee?


schonmal danke im vorraus :)

Muetze1 25. Mär 2005 19:01

Re: FindComponent auf andere Unit?
 
Moin!

Ja, rufe FindComponent der 2. Form auf...

MfG
Muetze1

arbu man 25. Mär 2005 19:01

Re: FindComponent auf andere Unit?
 
(Form2.FindComponent...)

Antigo 25. Mär 2005 19:03

Re: FindComponent auf andere Unit?
 
einfach wie immer. I love Delphi :)

dankeschön :)


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:17 Uhr.

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