CHR(13) not working for carriage return

  • Thread starter Thread starter tsison7
  • Start date Start date
T

tsison7

I tried the carriage return CHR(13) in a textbox but all it does is put a
small box where I want a new line and continues the text on the same line.
Any suggestions on how to get it working? I'm running Windows XP if that
means anything.
 
tsison7 said:
I tried the carriage return CHR(13) in a textbox but all it does is put a
small box where I want a new line and continues the text on the same line.
Any suggestions on how to get it working? I'm running Windows XP if that
means anything.

Have you tried Chr(10); Chr(13)?

Tom Lake
 
tsison7 said:
I tried the carriage return CHR(13) in a textbox but all it does is
put a small box where I want a new line and continues the text on the
same line. Any suggestions on how to get it working? I'm running
Windows XP if that means anything.

You need both Chr(13) and Chr(10) and they must be in that order.
 
Thanks to you both...didn't realize you needed both chr(13) and chr(10)
thought either of them alone was supposed to work.

Out of curiosity why do you need 2 chr() functions for the enter key?
 
Chr(13) is carriage return, Chr(10) is line feed. If you think about it in
terms of old fashioned printers, you would first need to move the carriage
to the left of the paper (carriage return) and then move it down to a new
line (line feed).
 
Back
Top