Why not just do your conversions, and then send the converting string to the procedure:
'convert a string to bytes
Dim b() As Byte
Dim s As String
s = "Here is my String"
b = StrConv(s, vbFromUnicode)
Now pass the byte array and return the string again
sString = StrConv(b, vbUnicode)
"Artificial Intelligence is no match for natural stupidity." ~unknown
Last edited by MKoslof; 11-20-2004 at 12:00 PM.