Author Topic: Property Get bug with VB6 code Generation  (Read 575 times)


  • EA User
  • **
  • Posts: 31
  • Karma: +0/-0
    • View Profile
Property Get bug with VB6 code Generation
« on: April 05, 2005, 09:57:55 am »
Have set up a class which has both a Let and Get Property set up.

If I click Attributes from within <ClassName> | Properties | Detail, selecting any attribute that is a property, then clicking the ellipsis button (next to property name) shows the correct Getter and Setter code preview that I would expect.

However, after doing a Generate Code (in this case allowing EA to create a new class file), the Let property is fine, but the Get property is set up as:

Public Property Get Address() As String"

instead of:

Public Property Get Address() As String

(i.e. a double quote character is added to the end).

Subs and Functions do not have this issue, just the Get Property. Please could you advise whether I am doing something wrong, or if this is a bug?



  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6941
  • Karma: +69/-10
    • View Profile
Re: Property Get bug with VB6 code Generation
« Reply #1 on: April 05, 2005, 03:49:03 pm »
This is a bug in the code generation templates.

It should be fixed for build 751, but if it's causing problems for you you can edit the template to fix it.

Open the code template editor (Configuration | Code Generation Templates)

Select Visual Basic as the language.

Select Operation Body from the template list.

Select property get from the stereotype override list.

The second line is:
Code: [Select]
$get="\n\t" + %opName% + " = " + $att"
It should be:
Code: [Select]
$get="\n\t" + %opName% + " = " + $att
The difference being the extra " on the end of the line.

Thanks for letting us know about the problem.