VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Text to ASCII Code function

by alexK (9 Submissions)
Category: VB function enhancement
Compatability: ASP (Active Server Pages)
Difficulty: Beginner
Date Added: Sun 7th February 2021
Rating: (1 Votes)

Function to convert plain text to ASCII code.

Rate Text to ASCII Code function

Function ASCIICode(str)
    Dim strOut, i
    strOut = ""
    For i = 1 To Len(str)
        strOut = strOut & "&#" & ASC(Mid(str, i, 1)) & ";"
    Next
    ASCIICode = strOut
End function

Download this snippet    Add to My Saved Code

Text to ASCII Code function Comments

No comments have been posted about Text to ASCII Code function. Why not be the first to post a comment about Text to ASCII Code function.

Post your comment

Subject:
Message:
0/1000 characters