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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Instantiating a class in VB

  • 16-05-2001 11:02pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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, Registered Users 2 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