Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to get a character ascii code in VB.Net .???

How to get a character ascii code in VB.Net .???

Scheduled Pinned Locked Moved Visual Basic
tutorialcsharpc++security
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Modern_night
    wrote on last edited by
    #1

    Im trying to implement an encryption technique in my collage and i have to get the ascii number of the character to aplly the algorithem to that character .. like in c++ for example .. the ascii code of the a=65 and b=66 and so on .. if any one have an idea about how to get this ascii value in vb.net .. plx reply me .. thanx لا اله الا الله محمد رسول الله

    R 1 Reply Last reply
    0
    • M Modern_night

      Im trying to implement an encryption technique in my collage and i have to get the ascii number of the character to aplly the algorithem to that character .. like in c++ for example .. the ascii code of the a=65 and b=66 and so on .. if any one have an idea about how to get this ascii value in vb.net .. plx reply me .. thanx لا اله الا الله محمد رسول الله

      R Offline
      R Offline
      RichardGrimmer
      wrote on last edited by
      #2

      try using Val = ASC(Char) (That's if I remember correctly!) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

      M 1 Reply Last reply
      0
      • R RichardGrimmer

        try using Val = ASC(Char) (That's if I remember correctly!) "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

        M Offline
        M Offline
        MohammadAmiry
        wrote on last edited by
        #3

        your answer is completely correct. Asc() function returns ascii code for a character and Chr() function does the reverse: returns the character for an ascii code.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups