![]() |
FINDCOMPONENT MEMO in PAGECONTROL
Wie kann ich einen Memo das zur Laufzeit erzeugt wurde einen Wert zuweisen.
TMemo(FindComponent('TMemo' + inttostr(1 ))).text := 'HALLO'; haut so nicht hin . Bitte HILFE :coder: |
Moin Bundy,
FindComponent sucht ja nach dem Namen der Komponente, also gehört in die Klammern kein TMemo+... sondern nur Memo+... |
hi,
klappt auch wohl eher so:
Delphi-Quellcode:
(FindComponent('Memo' + IntToStr(i)) as TMemo).Text := 'TEST';
|
for i := 1 to 5 do
begin TMemo(Form1.PageControl1.Pages[i-1].FindComponent('Memo' + inttostr(i ))).Lines.Add('HALLO'+IntToStr(i)); end; so funzt thx |
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:18 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