Sudden error: unrecognised data

JCDenton
09-02-2004, 06:22 AM
My server client app was working fine and suddenly my new client is not recognising the incoming data anymore.
To debug i print the incoming data and have a msgbox displaying it & the only character showing is a question mark.
I dont have a clue what has gone wrong - i havent even worked on the winsock...

JCDenton
09-02-2004, 06:32 AM
I have found the error:
I had a statement:
Dim strData as string
which I modified to:
dim strData, strPing as string

I thought this statement simply meant dim these to values as a string but obivously something more complex is occuring. Any enlightenment?
Thanx

John
09-02-2004, 06:55 AM
dim strData, strPing as string
Will create 1 variant and one string.

To make them both strings you need to use the more verbose
Dim strData As String, strPing As String

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum