Hallo,
dazu musst du deine Objekte einfach in ein array packen:
Delphi-Quellcode:
var
Images: array[0..4] of TImage; //statisches array
ImagesO: array of TImage //dynamisches array
Zuweisung so:
Delphi-Quellcode:
//statisch
Images[0] := Image1;
//dynamisch
SetLength(ImagesO, 1);
Images[0] := Image1;
Die Deklaration packst du am besten in den private-abschnitt deiner formdeklaration und weist die werte im OnCreate zu.
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1