Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decimal Value for Return

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
What is the decimal value for return? I need to know this because I am trying to make an if statement that determines if the text goes to a new line. Thanks.
 
Hi!

The decimal value of the line-feed character is 10. However, advanced programmers more commonly check for the hexadecimal value (0x0a). For a more detailed discussion/example, please see thread205-236269.

Hope that helps! ;-)
 
The decimal value for the RETURN or ENTER key is 13.

In C a new line can be char '\n' which in text mode is a line feed and a cariage return so a 10 and a 13.

'\r' is a cariage return (without a line feed).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top