Character conversion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J. Ptak

    #1

    Character conversion


    Can anyone tell me how to perform the following VB
    functions in C#:

    Chr(13) ==> Carriage Return escape sequence
    Asc("A") ==> ASCII value of the "A" character

    Thanks!




  • Steve C. Orr, MCSD

    #2
    Re: Character conversion

    Asc("A") ==> (char)"A"

    --
    I hope this helps,
    Steve C. Orr, MCSD



    "J. Ptak" <ptakja@NOSPAM. corning.com> wrote in message
    news:0e1901c346 67$6acbe8f0$a00 1280a@phx.gbl.. .[color=blue]
    >
    > Can anyone tell me how to perform the following VB
    > functions in C#:
    >
    > Chr(13) ==> Carriage Return escape sequence
    > Asc("A") ==> ASCII value of the "A" character
    >
    > Thanks!
    >
    >
    >
    >[/color]


    Comment

    Working...