Book a Demo

Author Topic: get/set operations  (Read 2749 times)

MarkKozel

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
get/set operations
« on: May 02, 2005, 09:43:16 am »
I want EA to create getter and setter methods for all off the attributes in a class.

It looks like I can have get and set methods created by EA if I define the prefix in Local Options | Get Prefix and Set Prefix.

However, when I go this, I don't see the opeations in my generated code.

What am I failing to do?
-Mark Kozel
"The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing."
--Albert Einstein

alexander

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: get/set operations
« Reply #1 on: May 02, 2005, 11:26:32 am »
Just mark the attribute as 'property' and it will promt you with a form for you to select setter, getter and other methods.
The setter and getter methods should appear then in the class
« Last Edit: May 02, 2005, 11:27:01 am by Alexander »

MarkKozel

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: get/set operations
« Reply #2 on: May 02, 2005, 12:29:19 pm »
Thank you.  That saved me a bunch of typing.
-Mark Kozel
"The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing."
--Albert Einstein