Recent

Author Topic: procedure FormClose  (Read 6387 times)

clement

  • Newbie
  • Posts: 3
procedure FormClose
« on: December 27, 2010, 03:54:21 am »
Hi  Please refer to MDI.
 I followed the tutorial and was compiled with error.
 The error is read as:-

 "umain.pas(16,44) Error: Duplicate identifier "Action"
umain.pas(16,44) Hint: Identifier already defined in unit FORMS at line 641
umain.pas(27,1) Fatal: There were 1 errors compiling module, stopping"

Please advise where I went wrong.

And where can I find the information about this procedure?
Thanks

Btw, have a blessed Christmas.

 Clement

Imants

  • Full Member
  • ***
  • Posts: 198
Re: procedure FormClose
« Reply #1 on: December 27, 2010, 01:04:16 pm »
procedure TfrChild.FormClose
      (Sender: TObject; var Action: TCloseAction);

Action is already defined in form use AAction ore something else like
procedure TfrChild.FormClose
      (Sender: TObject; var AAction: TCloseAction);

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: procedure FormClose
« Reply #2 on: December 27, 2010, 05:16:03 pm »
Does it go away if the unit is compiled in Delphi-mode? FPC is a little frustrating with namespace issues sometimes. Someone didn't remember that word "self" can still be used to access the parent...

 

TinyPortal © 2005-2018