Einzelnen Beitrag anzeigen

Benutzerbild von Deep-Sea
Deep-Sea

Registriert seit: 17. Jan 2007
907 Beiträge
 
Delphi XE2 Professional
 
#134

AW: Spiel programmieren, Hilfe benötigt.

  Alt 1. Feb 2011, 09:03
Delphi-Quellcode:
for i := 1 to 24 do
  TImage(FindComponent('Image' + IntToStr(i))).Visible := true;
[...]
Delphi-Quellcode:
for i:=0 to ComponentCount-1 do
  if Components[i] is TImage then
Wieso einmal mit FindComponent und einmal anders? Das könnte man doch auch gleich halten
Chris
Die Erfahrung ist ein strenger Schulmeister: Sie prüft uns, bevor sie uns lehrt.
  Mit Zitat antworten Zitat