Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Doctor on March 01, 2005, 07:46:35 am

Title: Delphi: how to generate the "override" d
Post by: Doctor on March 01, 2005, 07:46:35 am
Please,

what I shall do to EA will generate the 'override' directive to suppress warning in D5?



Title: Re: Delphi: how to generate the "override&quo
Post by: Eve on March 01, 2005, 01:27:44 pm
Add a tag value "override" with the value "true" to your method.

Simon
Title: Re: Delphi: how to generate the "override&quo
Post by: Doctor on March 01, 2005, 11:30:59 pm
Thanks Simon!

I thought it is somehow possible because I was looking into the generating template. When you make me sure I've found out the proper way to add the Tag.
Title: Re: Delphi: how to generate the "override&quo
Post by: Doctor on March 03, 2005, 07:57:41 am
Hello again!

Working with this feature I found another problem connected with this.

When reversing the source containing method with this "OVERRIDE =True" tag added value the PURE checkbox is set.  When generated next time  the 'virtual' directive is added also:

'procedure MyMethod; virtual; override;'

instead of

'procedure MyMethod; override;'

Can be this solved in other way than uncheck the PURE manually?

Thanks.


Title: Re: Delphi: how to generate the "override&quo
Post by: Eve on March 03, 2005, 01:06:18 pm
It can be solved by downloading and using the latest build of EA. (749) In which the problem you are describing was fixed. :)

Simon
Title: Re: Delphi: how to generate the "override&quo
Post by: Doctor on March 04, 2005, 12:39:14 am
GREAT!

Downloaded & checked - it works!