avanderlaan
Programmer
- Jul 11, 2002
- 156
I need to compare data coming from a serial port returned by a COM object as a VARIANT array of bytes with data stored in a long varchar column in SQL Server.
When I return the data in an ADO recordset and compare it with the serial data in C++ the data is identical. When I return the array of bytes to VB and compare it with the recordset data it does not compare although I can "see" that the "strings" are equivalent.
I have tried StrCmp between the byte array and rs("item"
.value, and I have tried CopyMemory to move the rs("item"
.value into a second byte array.
Thanx for any help or suggestions.
When I return the data in an ADO recordset and compare it with the serial data in C++ the data is identical. When I return the array of bytes to VB and compare it with the recordset data it does not compare although I can "see" that the "strings" are equivalent.
I have tried StrCmp between the byte array and rs("item"
Thanx for any help or suggestions.