Autor Beitrag
teamwkl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Mo 15.08.05 15:28 
Habe in meinem Programm ca 200 cerschieden TImage Felder!
In welchem Feld das Bild geladen werden soll haengt von mehreren Variablen ab... meine Frage jetzt wie kann ich in

ausblenden Delphi-Quelltext
1:
Image1.Picture.LoadFromFile(pic);					


anstatt Image1 eine Variable einsetzen???

Wenn ich da einen String mit dem gebrauchten Wert einfuege z.B Ziel.Picture.LoadFromFile(pic);
bekomm ich die Fehlermeldung

[Fehler] Unit1.pas(355): E2018 Record, Objekt oder Klassentyp erforderlich

Hierfuer muss es doch eine Möglichkeit geben

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mo 15.08.05 15:31 
Kleb alle Image-Komponenten in eine Liste ( oder ein Array ), dann kannst du einfach über den Index auf jedes beliebige Image zugreifen.

_________________
Bravery calls my name in the sound of the wind in the night...