Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Instantiating a class in VB

Options
  • 17-05-2001 12:02am
    #1
    Registered Users Posts: 7,468 ✭✭✭


    Can I pass parameters to an object as I'm instantiating it?

    I'm instantiating a COM Object written in Java and I want to pass a string into it's constructor.


Comments

  • Registered Users Posts: 2,494 ✭✭✭kayos


    Well I know with a VB class this can not be done and I can't honestly see how you could do it. Considering when you create a COM object the syntax is CreateObject/CreateInstance/New.

    Right a quick check around msdn and this is the best I could find.
    http://support.microsoft.com/support/kb/articles/Q246/1/38.ASP

    kayos

    When you get to hell tell them I sent you,
    you'll get a group discount...

    tribes.gameshop.ie


  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    No I didn't think you could do it, but it was worth asking. I'll use get and let instead.


Advertisement