PDA

Click to See Complete Forum and Search --> : What does this mean


Sophtware
Sep 1st, 2000, 12:17 AM
I was experimenting with two different forms ,each one had a winsock and i had one winsock send charcter "255" to the other winsock form..and in the recieveing form the character "A" appeard..it was a character map "A" and it looked a little different..

so what am asking is...the original post i got the code from

Dim Sbyte As Integer
Dim Sto2 As Variant
Sbyte = "255"
Sto2 = "255"
Winsock1.SendData Chr(Sbyte) & Chr(0) & Chr(0) & Chr(0) & Chr(35 + Len(Sto2))


was used to send this information to a server... but why? what would be the purpose?

Edneeis
Sep 1st, 2000, 02:43 AM
It translated Chr(Sbyte) into the funny character

to get it to send 255 then make it


Dim Sbyte As Integer
Dim Sto2 As Variant
Sbyte = "255"
Sto2 = "255"
Winsock1.SendData Sbyte & Chr(0) & Chr(0) & Chr(0) & Chr(35 + Len(Sto2))


try that!