Autor Beitrag
Beutel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 89

WIN XP

BeitragVerfasst: Mo 20.03.06 16:32 
Ich habe ein Formular und möchte die anzahl aller images haben. nun das Problem wärend der laufzeit erstelle ich auch neue images und das "Random like"!

nun will ich in einer Schleife durchgehen welches Feld noch Aktiv ist!

ich schreibe in den Tag eine null wenn es Inaktiv sein soll!

Ich weiß ja aber nicht wieviele Images ich auf dem Formular habe also muss ich ja eine Zahl nehmen die weit der 10000 ist und sobald er ja auf ein Images zugreiffen will was es nicht gibt stürzt er ab und da weiß ich nicht weiter. habt ihr eien idee?
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mo 20.03.06 16:50 
du könntest entweder sie über den namen finden Suche in: Delphi-Forum, Delphi-Library FINDCOMPONENT

Oder

ausblenden Delphi-Quelltext
1:
2:
3:
4:
for i:= 0 to form1.components.count do
begin
  if form1.components[i] IS TImage then ...
end;