Autor Beitrag
Jacdelad
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win XP Pro
Borland Developer Studio 2006 Architect
BeitragVerfasst: So 07.05.06 18:20 
Hallo, kann mir vielleicht jemand helfen, ein dynamisches Array zu erzeugen? Also ich will zum Beispiel folgendes declarieren:

var
koords:array [0..255,0..255] of TPoint;
zvals:array [0..255,0..255] of Extended;

Nur, dass die Werte nicht mit 0..255 festegelegt sind, sondern während des Programmablaufs dynamisch geändert werden können. Kann man das realisieren?

Jac
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: So 07.05.06 18:23 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var 
koords:array of array of TPoint; 
zvals:array of array of Extended;

..

setlength(koords,255,255);
setlength(zvals,255,255);


so...

_________________
GEIZ IST GEIL! - Ihr Sozialamt
Jacdelad Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win XP Pro
Borland Developer Studio 2006 Architect
BeitragVerfasst: So 07.05.06 18:27 
Danke, ich probiers aus!

Jac
Jacdelad Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win XP Pro
Borland Developer Studio 2006 Architect
BeitragVerfasst: So 07.05.06 19:44 
Es funktioniert!

Muss ich am Ende noch was freigeben oder so???

Jac
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Mo 08.05.06 11:53 
Nein, musst du nicht. Wenn du willst kannst du das aber manuell tun, indem du nil zuweist bzw. Finalize(a) ausführst.
Jacdelad Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win XP Pro
Borland Developer Studio 2006 Architect
BeitragVerfasst: Mo 08.05.06 19:23 
Jo, dann ist ja alles in Butter!

DANKE,
Jac