Autor Beitrag
Danny87
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Mo 13.02.06 13:20 
Hi,
ich mache so was zum ersten mal. also bitte keinen nervenzusammenbruch kriegen ;-)

ich hab auch schon die hilfe gequält, bekam aber keine ergebnisse.


ich möchte folgendes machen:
ausblenden Delphi-Quelltext
1:
(('memExt' + IntToStr(iExt)) as TMemo).Lines.add('Test');					


aber ich bekomme die meldung "operator ist auf diesen operandentyp nicht anwendbar".

iExt ist eine IntegerVariable und memExt1, memExt2,...etc sind Memofelder
Was habe ich falsch gemacht?


gruss daniel
LLCoolDave
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 212

Win XP
Delphi 2005
BeitragVerfasst: Mo 13.02.06 13:22 
Such mal nach FindComponent, das sollte weiterhelfen.
Danny87 Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 688

Windows 10 Pro 64bit
Sprachen: HTML, PHP, JavaScript, Delphi || IDE: RAD Studio 10.1 Berlin Starter, WeBuilder
BeitragVerfasst: Mo 13.02.06 13:25 
Danke! Klappt wunderbar!
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 13.02.06 13:26 
So in etwa:

ausblenden Delphi-Quelltext
1:
((form1.findcomponent('memExt' + IntToStr(iExt)) as TMemo).Lines.add('Test');					


Edit: Mist - zu spät...

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot