-
Somebody told me that error already detected, some told me
that I need to do error detection..
Exactly, I just want to have the text string definitely delivered,
if there is error inside (line not connected, data loss etc)
just let me know by any error code. So that I can try to
re-establish the link or resend again.
How should I do it?
M Thanks
-
Ok, this is just simple error handling. The dots below represent your current code inside the procedure you are using.
'{Start of code}
On Error Goto ErrorHandler
Dim msg as Long
...
...
...
...
...
...
Exit Sub
ErrorHandler:
msg = MsgBox("An error has occurred", vbCritical, "Error")
'{End of code}
Hope this helps, if you need any further help just mail me
-
Thanks gfrench,
Does that mean, disregard of any situation, if the message
cannot be successful completed (include just bits of error,
like noise etc make the data distorted), then error handling
will be fired.
You know, somebody even tell me to write my own CRC checking!
M Thanks
-
Sorry gfrench,
Besides, is there anyway to detect whether a connection is
online or dropped?
-
To detect errors in Winsock, you can use the Error event of Winsock. To check if it is connected/not connected, you can find out via the Connect and Close events, or checking the State property of Winsock.
Sunny