CHR(13) not working for carriage return

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.
 
T

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.

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

Tom Lake
 
R

Rick Brandt

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.
 
T

tsison7

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?
 
B

Baz

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top