
Zitat von
mkinzler:
Wird der Record auch im Interface deklariert?
Die Records habe ich jetzt natürlich im impementation-Teil

Zitat von
mkinzler:
Wo ist die Klasse deklariert, welche den Record verwenden soll?
Interface
Delphi-Quellcode:
interface
type
TApplicationCollection = class(TObject)
private
FApp : array of TApplicationGroup;
FNewGroupName, FNewApplicationName : string;
function getApplicationData(AGroup, ASelected,
AAddon: Integer): TApplicationData;
procedure setApplicationData(AGroup, ASelected, AAddon: Integer;
const Value: TApplicationData);
public
property ApplicationData[AGroup : Integer; ASelected : Integer; AAddon : Integer] : TApplicationData read getApplicationData write setApplicationData;
property NewGroupName : string read FNewGroupName write FNewGroupName;
property NewApplicationName : string read FNewApplicationName write FNewApplicationName;
procedure addGroup(name : string; index : Integer = -1);
procedure addApplication(const AGroup, index : Integer; const AData : TApplicationData);
procedure addAddon(const AGroup, ASelected, index : Integer; const AData : TApplicationData);
constructor Create(ANewGroupName, ANewApplicationName : string);
end;
implementation
type
TApplicationData = record
name, serial, registryKey, adcDir, notices : string;
end;
TApplicationMain = record
mainApplication : TApplicationData;
addons : array of TApplicationData;
end;
TApplicationGroup = record
name : string;
applications : array of TApplicationMain;
end;

Zitat von
Cöster:
Siehe dazu auch
hier die ersten 4,5 Posts (danach wurd's
OT 
). Da hatte ich die gleiche Frage zu Klassen gestellt.
Subklassen klingen gut ...