March 3rd, 2003, 02:44 PM
Join Date: Feb 2003
Location: St. Louis, MO USA
Time spent in forums: < 1 sec
Reputation Power: 11
I don't have time to try out your code, but I can offer some suggestions.
1. Outgoing is ok, you're sending a string, so that's simple.
2. Incoming procedure is where the problem is. Your getting a Byte Array, not a string, so when your code implicitly converts the output from your getdata method in the object call:
What really happens is, you get something like this in the ByteArray first (in memory only)
bArray(0) = 0
bArray(1) = 14
bArray(2) = 0
bArray(3) = 32
Zeros, separated by the chars in Ascii code.
This is an Array that can probably be decoded using the following code converting FROM unicode to a non-unicode string.
Dim sOutput as String
sOutput = StrConv( wsCom(Index).GetData retData, vbFromUnicode )
May work, may not. Just a guess....
- Chris of Custom Fit Technology
Access to MySQL Conversion Tool,
Visual XSLT Conversion Tool