
Zitat von
jmd anders:
also ich würde das im constructor der klasse machen
Ne andere möglichkeit gibts ja auch nicht
Delphi-Quellcode:
interface
type
TifEditEvent = class
private
FeditEventID: Integer;
public
Constructor Create ; override ;
property editEventID: Integer read FeditEventID write FeditEventID;
end;
implementation
constructor TidEditEvent.Create ;
begin
inherited ;
FeditEventID := 4711 ;
end ;