Book a Demo

Author Topic: Declaring Withevents in VB  (Read 3331 times)

bwu

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • mmm... donuts...
    • View Profile
Declaring Withevents in VB
« on: August 20, 2002, 08:47:30 am »
I'm trying to generate VB code so that I have a private variable withevents (Private Withevents Foo As Recordset)

So far I've tried two ways of modeling it, but neither method worked when it comes to VB code generation:

1) Create an attribute with 'withevents' as stereotype
2) Create an association between two classes with 'withevents' as stereotype

Is there a way to do this?  Or is this a feature that have yet to be implemented?

Thanks

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 691
  • Karma: +4/-2
    • View Profile
Re: Declaring Withevents in VB
« Reply #1 on: August 21, 2002, 06:30:08 am »
Hello,

Try your first option with a stereotype of 'with events', notice the space between with and event.  EA should then recognise this stereotype and create the correct code.  Hope this helps.

Paul Mathers