convert byte to string?

PrOpHeT
10-08-2001, 11:24 AM
is there a way to convert byte data type to string?

"No one can know everything, only so much as to drive us to look for the rest." -PrOpHeT-

Squirm
10-08-2001, 11:44 AM
You can use Chr$ function:

<pre>strVar = Chr$(byteVar)</pre>

if that doesnt work, then this should:

<pre>strVar = Chr$(CInt(byteVar))</pre>

Volte
10-08-2001, 01:54 PM
Chr() I think will convert it to an ASCII character. CStr will convert the type.

If at first, you don't succed, call it version 1.0.

Thinker
10-08-2001, 08:46 PM
If you have a Byte array do this...
<pre>
strText = StrConv(bytArray, vbUnicode)


</pre>

I think therefore I am... sometimes right. images/icons/wink.gif

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum