Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Class asciiconvert
Public Function encode(ByVal input As String) As String
Dim output As String
Dim i As Integer
For i = 0 To input.Length - 1
output &= "&" & Asc(input.Substring(i, 1)) & ";"
Next
Return output
End Function
Public Function decode(ByVal input As String) As String
Dim output, inputArray() As String
Dim sb As New StringBuilder()
Dim i As Integer
inputArray = input.Split(";&")
For i = 0 To inputArray.Length - 2
If inputArray(i).Replace("&", String.Empty).Replace(";", String.Empty) = "10" Then
sb.Append("<br>")
Else
sb.Append(Chr(CInt(inputArray(i).Replace("&", String.Empty).Replace(";", String.Empty))))
End If
Next
output = sb.ToString()
Return output
End Function
End Class
Public Function encode(ByVal input As String) As String
Dim output As String
Dim sb as new stringBuilder()
Dim i As Integer
For i = 0 To input.Length - 1
sb.append("&" & Asc(input.Substring(i, 1)) & ";")
Next
output = sb.toString()
Return output
End Function