Autor Beitrag
stefan1707
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19



BeitragVerfasst: Do 22.02.07 14:30 
Hallo kann mir jemand ganz fix sagen wie ich die Länge eines bestehnden Array finden kann?
sowas wie MyArray.lenght oder so gibt es nicht oder?
Ich will mit einer For-Anweisung alle Elemente des Arrays durchgehen, leider kenne ich seine Größe nicht.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 22.02.07 14:32 
Moin und :welcome: im Forum!

Sollte mit for i := 0 to High(MyArray) do gehen. ;)

Siehe auch:
ausblenden Delphi-Quelltext
1:
2:
Length()
Low()


cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
stefan1707 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 19



BeitragVerfasst: Do 22.02.07 14:35 
Danke,
ich bin mit der Sprache noch nicht so vertraut.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 22.02.07 14:44 
Moin!

Markierst du den Thread noch entsprechend, wenn dein Problem gelöst ist? Danke. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Do 22.02.07 14:47 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
 //Schleife
 for i:= low(DeinArray) to high(DeinArray) do
  ...

 //Länge
 high(DeinArray)+1;


LG
Stefan

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.