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.
strText = Request.Form("password")
strText = Left(strText,6)
<%
Dim a
a = "MyPassword"
Response.Write "original string: " & a & "<br>"
Response.Write "0-filled numeric string: " & strToAsc(a) & "<br>"
Response.Write "Hex string: " & strToAscHex(a) & "<br>"
Function strToAsc(str)
Dim i
For i = 1 to Len(str)
strToAsc = strToAsc & ZeroFill(Asc(mid(str,i,1)),3)
Next
End Function
Function strToAscHex(str)
Dim i
For i = 1 to Len(str)
strToAscHex = strToAscHex & ZeroFill(Hex(Asc(mid(str,i,1))),2)
Next
End Function
Function ZeroFill(str, numChars)
ZeroFill = str
If numChars > len(str) Then ZeroFill = string(numChars - len(str),"0") & str
End Function
%>