Autor Beitrag
David
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27



BeitragVerfasst: Mi 22.06.05 03:30 
Hallo,

ich hab ein Problem oder vielleicht auch nur einen Denkfehler (ist schon spät).
In einer Variable stehen Integer Werte drin.
Jetzt hab ich in meinem Form die TImage Komponente 10 mal eingefügt:
image1;
image2;
image3;
[...]

Jetzt möchte ich immer auf eine bestimmte zugreifen, jedoch auf die, wie der Int Wert ist.
Beispiel: Int Wert = 5 -> image5.Picture.Bitmap;

Viele If-Anweisungen sind nicht wirklich schön. Ist es möglich daher eine Variable in den Variablennamen einzubauen? Oder wie könnte ich das Problem lösen?

Gruß
David
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 22.06.05 08:13 

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )