Use reintroduce, not override.

Cheers,
Carl

-----Original Message-----
From: Luke Pascoe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 18 May 2000 9:44 AM
To: Multiple recipients of list delphi
Subject: [DUG]: altering Create() parameters


I want to override the constructor of a form to include an extra parameter
but I get "Declaration ... differs from previous declaration"

eg:

  public
    constructor Create(AOwner: TComponent; RootFolder: String); override;

...

constructor TCreateList.Create(AOwner: TComponent; RootFolder: String);
begin
  inherited Create(AOwner);

...

How do I do this?

--

Luke Pascoe
Programming
Ihug
[EMAIL PROTECTED]
0800 GET IHUG ext.9764

"Dr. Alex Comfort, author of 'The Joy of Sex' has died, after a
series of strokes." -- From the Times, 28th March 2000.

--


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to