Autor Beitrag
Patriol
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Mi 14.09.05 18:01 
Hey leutz,

ich weiß das es eine Methode gibt um die Länge eines dyn. Array's zu ermitteln, nur weiß ich leider nich mehr wie die heißt! Hab hier auch schon unter dem Suchbegriff Suche in: Delphi-Forum, Delphi-Library ARRAY LÄNGE gesucht aber leider nichts entsprechendes gefunden. Kann mir da einer auf die Sprünge helfen?

Danke im voraus
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 14.09.05 18:06 
ausblenden Delphi-Quelltext
1:
length(meinArray);					

_________________
We are, we were and will not be.
Amateur
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 777

(Win98, WinMe) WinXP Prof
D3 Prof, D6 Pers, D2k5 Pers., Turbo C++ Explorer
BeitragVerfasst: Mi 14.09.05 18:06 
high(array) glaub ich

_________________
"Kein dummes Gerede. Kein Rumrätseln. Denkt an nichts anderes mehr, nur noch an das, was vor euch liegt. Das ist die wahre Herausforderung. Ihr müßt euch vor euch selbst schützen, Leute." (Rennes in "Cube")
Beiträge: >700
Spaceguide
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 552


(D3/D7/D8) Prof.
BeitragVerfasst: Mi 14.09.05 18:24 
Length gibt die Länge, High den Index des letzten Elements zurück.
Patriol Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52


D3, D5, D7
BeitragVerfasst: Mi 14.09.05 18:48 
Lenth is ja irgendwie zu einfach, dass man da drauf kommt :wink: ... nee im ernst - es klappt mit length, dachte nur immer das is nur für strings ... mit high bekommt man natürlich den letzten index.

Danke für die schnelle hilfe
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Mi 14.09.05 18:51 
Setze doch gleich noch ein paar Meta-tags, damit man es schnell wiederfindet ;-)