Results 1 to 5 of 5

Thread: In Visual Basic How to check whether an Object exists??

  1. #1
    Join Date
    Aug 2006
    Posts
    162

    In Visual Basic How to check whether an Object exists??

    Can someone tell me How can I check whether an Object exists in Visual Basic?? Also I am trying to make a script to open and control an ActiveX control within a CAD program, and I am getting the 'Microsoft VBScript runtime error'. Can anyone tell me how to fix this error.?? Please help me soon.
    Processor: AMD Athlon(tm) 64 X2 Dual Core @ ~2.2 GHz
    Memory: 1024MB RAM
    Hard Drive: 200 GB
    Video Card: RADEON X300/X550 Series

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: In Visual Basic How to check whether an class exists??

    I know how to check or create the the Class by using the VB Class Builder. Follow the steps to create collection class :
    • Right click on the Project Explorer area.
    • Select Add > Class Module.
    • Select VB Class Builder, and click Open
    • Select File > New > Collection and Set your class to be grouped it the Collection Class, Set The collection Name and click OK
    • Update Project and Close the Builder

  3. #3
    Join Date
    Nov 2005
    Posts
    1,323

    Re: In Visual Basic How to check whether an Object exists??

    The Error "Microsoft VBScript runtime error" and the "ActiveX component can't create object" is usually generated because dynamic-link libraries (DLLs). Reinstalling the application can fix this error. The COM object of DLL depends on :
    1. Not in the System path.
    2. Missing from the system.
    3. Not accessible by the system because of security settings

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: In Visual Basic How to check whether an Object exists??

    If you are getting the error "Microsoft VBScript runtime error" then I would like to suggest you to reinstall the whole application again. The error comes when your DLL gets corrupted or it is damaged. So reinstalling will solve your issue. Also does any other program run properly.??

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: In Visual Basic How to check whether an Object exists??

    Even I think that your DLL is corrupted. Try to run other code, if the other code is working that means there is something error in your code. Then try to debug the error from that code. Maybe that will fix your issue. Otherwise you will have to uninstall the existing application. And then install the version again. Hope that reinstalling will solve your problem.

Similar Threads

  1. Object Controls in Visual basic
    By Satchel in forum Software Development
    Replies: 4
    Last Post: 25-01-2011, 04:41 AM
  2. Object oriented functions in Visual Basic 6.0
    By fLUTE in forum Software Development
    Replies: 4
    Last Post: 27-12-2010, 05:59 AM
  3. Replies: 5
    Last Post: 24-03-2010, 05:27 AM
  4. How to check if variable exists in C#
    By Hamlet in forum Software Development
    Replies: 3
    Last Post: 28-08-2009, 07:30 PM
  5. Visual Basic 2005 or Visual Basic 6
    By Aasha in forum Software Development
    Replies: 5
    Last Post: 15-01-2009, 06:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,705,864.54965 seconds with 17 queries