Book a Demo

Author Topic: Visual Basic .NET: Methods without brackets  (Read 4149 times)

MarcusM

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Visual Basic .NET: Methods without brackets
« on: March 03, 2009, 05:21:50 pm »
scanning failed on valid .NET code:

public sub Abc

scanning works on:

public sub Abc()


Please correct, because we have hundreds of bracketless Methods

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Visual Basic .NET: Methods without brackets
« Reply #1 on: March 04, 2009, 12:57:05 am »
Hunt around for the option to remove brackets from methods with no parameters. Perhaps setting this will affect your "scanning" of code.

I cannot remember off hand where the option is, but you'll find it without too much trouble.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Visual Basic .NET: Methods without brackets
« Reply #2 on: March 04, 2009, 08:19:28 am »
It was fixed in build 841.  (And no, the option mentioned only effects display of operations on diagrams)

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Visual Basic .NET: Methods without brackets
« Reply #3 on: March 04, 2009, 10:16:27 am »
Actually, that sounds right to me. I did not think the option had any effect in the required direction.

It just seemed odd that Marcus was having problems here. Obviously this was the case and it has been handled.
No, you can't have it!

MarcusM

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Visual Basic .NET: Methods without brackets
« Reply #4 on: March 04, 2009, 09:56:03 pm »
Simon: thanks, I have used build 834.
I hope the fix applies to "function", "sub" and "property", isn't it?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Visual Basic .NET: Methods without brackets
« Reply #5 on: March 05, 2009, 09:03:40 am »
Yes, I believe it does.

PS. The odd thing is that the published grammar for the language doesn't mention it.  But then it's happened quite a number of times.

MarcusM

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Visual Basic .NET: Methods without brackets
« Reply #6 on: March 05, 2009, 03:34:57 pm »
The grammar docu ... it's Microsoft docu ...