Einzelnen Beitrag anzeigen

Dax
(Gast)

n/a Beiträge
 
#10

Re: String als default bei propertys ???

  Alt 3. Aug 2006, 21:01
Delphi-Quellcode:
type
  MyComponent = class(TComponent)
  private
    fPort: string;
  public
    property Port: ... ;
    constructor Create; override;
  end;

implementation

constructor MyComponent.Create;
begin
  inherited Create;
  fPort := 'com1';
end;
@CK_CK: OnCreate ist ein Event von TForm und noch paar andren Klassen, wenn ich mich nich irre... Meinst du AfterConstruction?
  Mit Zitat antworten Zitat