Autor Beitrag
Passi077
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Win XP
D7 Pers
BeitragVerfasst: So 17.10.04 14:04 
Hi,

ich suche vergebens eine Funktion, die mir folgendes ermöglicht:

Ich habe z.B. 10 Labels.

Nun möchte ich diese nacheinander auf einen Wert überprüfen, aber natürlich nur eine If-Abfrage dafür verwenden.

In Visual Basic gab's dafür ein Index-Feld, da sah das ganze so aus:

For i = 0 to 9
if label1(i).caption = 'hallo' then..
next i


Wie kriege ich das jetzt in Delphi hin? Habe da nämlich leider kein Index Feld gefunden..

Grüße,
Passi
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 17.10.04 14:07 
Hallo

such-stichwort: Suche in: Delphi-Forum, Delphi-Library FINDCOMPONENT

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Passi077 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 125

Win XP
D7 Pers
BeitragVerfasst: So 17.10.04 14:16 
Perfekt, genau das hab ich gesucht :)

Danke!