Dim carAscValues() As String = tableindex.Split("."c) Dim result As String = String.Empty For Each carAscValue As String In carAscValues result &= Convert.ToChar(CType(carAscValue, Byte)) Next
Dim aTable() As String = "65.86.83.45.83.70.65.82.77.11.65.86.83.45.82.83.69.82.86.69.82".Split(".") Dim sResult As String = "" For r As Integer = LBound(aTable) To UBound(aTable) sResult = sResult & Chr(aTable(r)) Next Debug.Print(sResult)
aTable = sResult.Split(Chr(11)) Debug.Print("Premier texte" & vbTab & aTable(0) & vbCrLf & "Deuxième texte" & vbTab & aTable(1))
Dim carAscValues() As String = tableindex.Split("."c) Dim carAscByteValues() As Byte = Array.ConvertAll(Of String, Byte)(carAscValues, New Converter(Of String, Byte)(AddressOf StringToByte)) Dim result As String = System.Text.Encoding.ASCII.GetString(carAscByteValues)
Private Function StringToByte(ByVal value As String) As Byte Return CType(value, Byte) End Function
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question