Autor Beitrag
Andreas_Sans
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Do 22.05.03 22:24 
Ich hab eine Array mit 64 Zellen, in 10 von ihnen sind Einser. Nun will ich mit einer For-Schleife abfragen, ob eine Eins in der Zelle ist oder nicht. Wenn z.B. in der 9. Zelle eine Eins ist, soll der Bitbtn9 geändert werden.

Kann man das irgendwie machen, dass der die Zahl hinter BITBTN schreibt ?
Brueggendiek
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 304

Win 98, Win98SE, Win XP Home
D5 Std
BeitragVerfasst: Do 22.05.03 23:18 
Hallo Andreas!

FindComponent ist dein Freund!

Alternative: die Buttons zur Laufzeit erstellen und in ein Array packen.
Mehr Schreibarbeit, geht aber in der Ausführung schneller.

Gruß

Dietmar Brüggendiek
Andreas_Sans Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 76



BeitragVerfasst: Fr 23.05.03 16:04 
kannst du mir mal ein Beispiel machen. ich habs mit dem FindComponent noch net ganz gerafft :oops:
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Sa 24.05.03 12:10 
Hallo!

Such einfach mal nach FindComponent hier im Forum!

Gruß
Tino