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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. increment of value of a char variable????

increment of value of a char variable????

Scheduled Pinned Locked Moved ASP.NET
questionhelptutorial
3 Posts 2 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
    mr mohsen
    wrote on last edited by
    #1

    hi i want to know how can i increment a variable that contain a character for example i have a variable(fchar) that contain a 'c' and i want to show previouse and next character of this variable value. what is that function? thank you

    nobody help you... you have to help you yourself and this is success way.

    M 1 Reply Last reply
    0
    • M mr mohsen

      hi i want to know how can i increment a variable that contain a character for example i have a variable(fchar) that contain a 'c' and i want to show previouse and next character of this variable value. what is that function? thank you

      nobody help you... you have to help you yourself and this is success way.

      M Offline
      M Offline
      mr mohsen
      wrote on last edited by
      #2

      sorry but i forgotten to say that i want to do this with javascript

      nobody help you... you have to help you yourself and this is success way.

      S 1 Reply Last reply
      0
      • M mr mohsen

        sorry but i forgotten to say that i want to do this with javascript

        nobody help you... you have to help you yourself and this is success way.

        S Offline
        S Offline
        Sankar Komma
        wrote on last edited by
        #3

        Try this following function, function GetAscii(c) { var car = c; for(i=0;i<256;i++) { if(String.fromCharCode(i) == car) { if(i == 97) { alert(String.fromCharCode(i+1)); } else { alert(String.fromCharCode(i-1)+','+String.fromCharCode(i+1)); } } } } This fucntion used to get pre and post characters of passing char.

        smile :-)

        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