J
John Smith
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);
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
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);
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