Book a Demo

Author Topic: Automatic generated public attributes  (Read 2586 times)

Jeanluc

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Automatic generated public attributes
« 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 !

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8098
  • Karma: +118/-20
    • View Profile
Re: Automatic generated public attributes
« Reply #1 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

Jeanluc

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Automatic generated public attributes
« Reply #2 on: April 19, 2005, 01:24:42 am »
You're great ..  :) Thaks a lot !