Results 1 to 4 of 4

Thread: I need serious help

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    2

    I need serious help

    Hi guys im not new to vb but i am really bad at it anyways i need help i am trying to make a server but it isnt coming out very well.
    when i try to send a message to a box on a different form i get the following error:
    Compile error:

    Argument not optional
    the coding is:
    Code:
    Private Sub Command3_Click()
    If Wsock.State <> sckConnected Then Exit Sub
    ---->Wsock.SendData<---
    End Sub
    what is wrong with it?? help

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: I need serious help

    I'm no VB6 expert, but I'd say you're getting that error because you've left out the arguments for the SendData call.

    Edit: Welcome to the forums by the way.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2008
    Posts
    2

    Re: I need serious help

    ^_^ i guess so....
    but what arguments...
    if u want i could send you a link to the project
    i really want this to work

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: I need serious help

    It needs a string containing the values you want to send across.

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