07-08-2006, 01:44 AM
You pass it to the Winsock control as a byte array, but the Winsock control recieves it as a variant. This is why you can pass a string and a byte array through the same call.
From the object browser:
Remember what happens when you dont specify a data type in Visual Basic? That's right, it's a variant! 8)
From the object browser:
Quote:Sub SendData(data)
Member of MSWinsockLib.Winsock
Send data to remote computer
Remember what happens when you dont specify a data type in Visual Basic? That's right, it's a variant! 8)