Autor Beitrag
Bomania
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Di 04.03.03 18:09 
Hallo,

ich würde gerne wissen, wie man ein Komponenten-Array erstellen kann. Ich habe 36 Buttons (command1, command2....) und würde diese gerne über einen Index ansprechen. Bei VB geht das ja sehr einfach. Wie ist das aber unter Delphi zu realisieren? Habe dazu hier im Forum nichts passendes gefunden.

Vielen Dank.
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Di 04.03.03 18:44 
Hallo,

so wie du es aus Visual Basic kennst gibt es das unter Delphi nicht.

Du hast hier zwei mölichkeiten:
1. Du verwendest FindComponent.
2. Du erzeuchgst die Komponenten Dynamisch als Elemente eines Normalen Arrays.

Beides wird hier erklärt.

Gruß
Klabautermann
Bomania Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Di 04.03.03 19:13 
Danke :!: