![]() |
Records nach ausen unsichtbar machen
Wie kann ich records die die als Typen deklariert habe, nur in der akt. Unit sichtbar machen?
|
Re: Records nach ausen unsichtbar machen
In dem du sie im Implementation Teil deklarierst
|
Re: Records nach ausen unsichtbar machen
Allerdings, funktioniert das nicht ganz so :P
Delphi-Quellcode:
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:
|
Re: Records nach ausen unsichtbar machen
Wird der Record auch im Interface deklariert?
Wo ist die Klasse deklariert, welche den Record verwenden soll? |
Re: Records nach ausen unsichtbar machen
Siehe dazu auch
![]() |
Re: Records nach ausen unsichtbar machen
Zitat:
Zitat:
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:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:55 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz