Hallo
Möcht ein dreidimensionales Array in Delphi (D7 prof) erzeugen in dem ich Daten speichern kann.
Bsp: sAroDimGroup[20][40][11] of String;
Kann mir jemand ein Beispiel zeigen ?
Meines funktioniert nicht:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48:
| unit Unit1;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;
type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private public end;
type TGroupSceneValue =class(TObject) public nSceneValue: Array [1..11] of String; end;
type TGroupScene = class(TObject) private public cAroOutput: Array [1..20] of TGroupSceneValue; end;
var Form1: TForm1; sAroDimGroup: Array [1..50] of TGroupScene;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject); begin sAroDimGroup[1] := TGroupScene.Create; sAroDimGroup[1].cAroOutput[1].nSceneValue[1]:='Ha';
end;
end. |
Danke.
Bunschi
Moderiert von
Christian S.: Code- durch Delphi-Tags ersetzt.Moderiert von
Christian S.: Topic aus Sonstiges verschoben am Mi 02.02.2005 um 13:33