Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mo 20.03.06 17:15 
Hallo,

habe vier TEdit:
txtPrgNr3019
txtPrgNr3020
txtPrgNr3021
txtPrgNr3022

sowie die Variable Nummer :integer

je nachdem welchen Wert die Variable Nummer besitzt (3019, 3020, 3021 oder 3022)
möchte ich das entsprechende TEdit aktivieren und was eintragen.

habs mal so versucht:
FormAnzeigen.(txtPrgNr+IntToStr(Nummer) as TEdit).text := 'sdfsdf'

leider geht das nicht so (wär ja auch zu schön gewesen)

kann mir jemand helfen?

danke
christoph
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 20.03.06 17:19 
ausblenden Delphi-Quelltext
1:
((FindComponent('txtPrgNr'+inttosr(nummer)) as TEdit).text:='sdfsdf';					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Di 21.03.06 10:13 
super, vielen dank...