PDA

Click to See Complete Forum and Search --> : I need serious help


TehProgrammer
May 24th, 2008, 05:13 AM
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:
Private Sub Command3_Click()
If Wsock.State <> sckConnected Then Exit Sub
---->Wsock.SendData<---
End Sub
what is wrong with it?? help

Atheist
May 24th, 2008, 05:34 AM
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.

TehProgrammer
May 24th, 2008, 05:47 AM
^_^ i guess so....
but what arguments...
if u want i could send you a link to the project
i really want this to work :)

mendhak
May 24th, 2008, 06:51 AM
It needs a string containing the values you want to send across.