Recent

Author Topic: about ascii code of 'Enter'  (Read 3816 times)

7vinbaby

  • Jr. Member
  • **
  • Posts: 59
  • Hi ! Bless you have a good day.
about ascii code of 'Enter'
« on: September 27, 2016, 03:18:41 pm »
is CR(carriage return) is same with 'Enter' ?
Is Ascii value of 'Enter' =13?
plz help to give me an answer!!
7vinbaby

howardpc

  • Hero Member
  • *****
  • Posts: 3257
Re: about ascii code of 'Enter'
« Reply #1 on: September 27, 2016, 03:31:52 pm »
Programs receive a keycode of 13 when the Enter key is pressed on standard keyboards.
The LCL defines a constant VK_RETURN for this word value.

Interpreted as a Char the value is #13. On Windows this value is nearly always encountered together with #10 as an end-of-line marker in text files. Most other operating systems use a single byte end-of-line marker in text files.

7vinbaby

  • Jr. Member
  • **
  • Posts: 59
  • Hi ! Bless you have a good day.
Re: about ascii code of 'Enter'
« Reply #2 on: September 27, 2016, 03:34:32 pm »
Programs receive a keycode of 13 when the Enter key is pressed on standard keyboards.
The LCL defines a constant VK_RETURN for this word value.

Interpreted as a Char the value is #13. On Windows this value is nearly always encountered together with #10 as an end-of-line marker in text files. Most other operating systems use a single byte end-of-line marker in text files.
ok.thx for helping
7vinbaby