Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Jeanluc on April 18, 2005, 02:09:47 am

Title: Automatic generated public attributes
Post by: Jeanluc on April 18, 2005, 02:09:47 am
Hi,

In a class, I create an operation with a parameter of TMyClass type.
When I generate Delphi code, I get automatically a public attribute:
m_TMyClass: TMyClass;

I don't need this attribute in my code. Why this attribute generation ? Is it possible to disable it please ?

Regards,

Jean-Luc !
Title: Re: Automatic generated public attributes
Post by: Eve on April 18, 2005, 03:39:48 pm
Hello,

I think the following thread is related to your problem.

http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1113528171

The essence of the thread is that EA is creating an attribute from an (unnamed) association or aggregation.

Go to Tools | Options | Generation and uncheck "Auto generate role names when creating code"

Simon
Title: Re: Automatic generated public attributes
Post by: Jeanluc on April 19, 2005, 01:24:42 am
You're great ..  :) Thaks a lot !