me_again
Newcomer
(RESOLVED) String to Byte Array convertion?!
Hi everyone,
String to Byte Array convertion?!
I've searched the forum for similar posts but couldn't seem to find any that satisfied my question.
In VB6 you could convert a String to a Byte array using
How on earth do you do the same type of thing in VB.NET?
I need to do this for an Overloaded function - one function excepts a String parameter and the next function excepts a Byte array parameter. I then call the latter from the first, and want to pass the 'converted' string into the Byte array parameter.
Thanks in advance.
Hi everyone,
String to Byte Array convertion?!
I've searched the forum for similar posts but couldn't seem to find any that satisfied my question.
In VB6 you could convert a String to a Byte array using
Visual Basic:
Dim buffer
Dim sStr As String
'String to Byte Array
buffer = StrConv(sStr, vbFromUnicode)
'and back to string
sStr = StrConv(buffer, vbUnicode)
How on earth do you do the same type of thing in VB.NET?
I need to do this for an Overloaded function - one function excepts a String parameter and the next function excepts a Byte array parameter. I then call the latter from the first, and want to pass the 'converted' string into the Byte array parameter.
Thanks in advance.
Last edited: