Autor Beitrag
Bunschi
Hält's aus hier
Beiträge: 9

Win2000
D7 Prof
BeitragVerfasst: Mi 02.02.05 13:29 
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:

ausblenden volle Höhe Delphi-Quelltext
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
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  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 user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.
Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Mi 02.02.2005 um 13:33
IngoD7
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 629


D7
BeitragVerfasst: Mi 02.02.05 13:40 
Bunschi hat folgendes geschrieben:
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 ?


ausblenden Delphi-Quelltext
1:
2:
type
   sAroDimGroup = array[1..20,1..40,1..11] of string;