Book a Demo

Author Topic: VB Code Generate  (Read 3570 times)

bwu

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • mmm... donuts...
    • View Profile
VB Code Generate
« on: August 09, 2002, 03:56:49 pm »
I have a class called Foo which has a stereotype of Interface.  The Foo class contains an operation called Bar.  When VB code is generated from Foo class, I get
Public Sub Bar()

So far, all is well.  Then I create another class called HelloWorld which inherits the Foo class.  When I generate VB code from the HelloWorld class, I get
Implments Foo
Public Sub Foo_Bar()

But according to Visual Basic, it should be a private class:
Private Sub Foo_Bar()

Has anyone encountered the same problem?  Am I doing something wrong, or is this something that needs to be fixed?

Thanks

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 691
  • Karma: +4/-2
    • View Profile
Re: VB Code Generate
« Reply #1 on: August 11, 2002, 06:16:10 am »
Hello,

We have had a look at this and changed the default scope to be private when where instantiating methods from an implemented interface.  This change will be included in the next build which will be released within the last week.

Paul Mathers

bwu

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • mmm... donuts...
    • View Profile
Re: VB Code Generate
« Reply #2 on: August 12, 2002, 09:12:17 am »
That sounds really cool.  Thanks!

But I have another question that is related to this thread:

If I specify the parameter kind (in, inout), I get ByVal and ByRef parameters respectively when I generate VB.NET code.  However I don't get that when I generate VB code.  Is there a way to get that EA to include ByRef and ByVal parameters in VB?