Registriert seit: 18. Aug 2004
Ort: Edewecht
712 Beiträge
Delphi 5 Professional
|
Re: property string default Wert ?
13. Sep 2004, 12:05
Delphi-Quellcode:
type
TMyClass= class(TObject)
private
FMyString: String;
public
constructor Create;
published
property MyString: String read FMyString write FMyString;
end;
Delphi-Quellcode:
constructor TMyClass.Create;
begin
inherited Create;
FMyString := 'Mein Standardwert';
end;
Ciao, Sprint.
"I don't know what I am doing, but I am sure I am having fun!"
|