Hi,
Take a look at chr(svalue(i))
http://msdn.microsoft.com/library/de...l/vafctChr.asp
Ken
------------------
"John Smith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hello,
Suppose I have the following C# code which I want to convert to VB:
for (int i = 0; i < nFieldLength; i++)
Console.Write((char) sValue[i]);
sValue is a byte [] array.
The problem is the typecast which I can't find an equivalent for in VB. I
tried using CChar() and CType() but neither of them seemed to work. Instead
the compiler said it can't convert Byte to Char.
Thanks in advance.
-- John