CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Arrow I need help fixing en error on my app

    Well i started coding an app but i get no error when i compile it but when i try to clicl in one of the commands button i get an error saying Runtime error 424 Object Requiered

    then when I click on debug i takes me down to this

    Private Sub Command1_Click()
    Label1.Caption = "Connected to server"
    WS.Close <<<<<<<<<<<<< thats where im getting the error @

    i have try a lot of methods but nothing has fix it yet

    maybe someone can help.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: I need help fixing en error on my app

    How would we know what you mean with this?
    Code:
    WS.Close
    What is WS? Search for it in your program
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: I need help fixing en error on my app

    A guess would be, that WS is supposed to be Winsock control, or an object variable referring to a Winsock control. Either this variable was not initialized, or the control does not exist or is out of scope.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured