How Do I get the text after something

Posts 1–4 of 4 · Page 1 of 1
How Do I get the text after something
Ok i have a byteArray
[php]
dim byteArray as byte() = {5, 74, 255, 1}
dim wow = <root>
<bytes>
<%= From a As Byte In byteArray
Select "/:" & a.ToString
%>
</bytes>
</root>

MsgBox( wow...<bytes).Value)
' output is "/:5/:74/:255/:1"
' Now how can i get "/:5/:74/:255/:1" back to a byte array
[/php]
What?

Could you explain further?
Quote Originally Posted by Lolland View Post
What?

Could you explain further?
i will like to save the Byte array in the xml and get it back when it is reloaded.
[php]
Dim str As String = "/:5/:74/:255/:1"
Dim bArray() As Byte
Dim bytes() As String = str.Split("/"c)
Dim bList As New List(Of Byte)
bList.AddRange(From b In bytes Where b <> String.Empty Select CType(b.Replace(":"c, ""), Byte))
bArray = bList.ToArray
[/php]

There.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us