PDA

View Full Version : Solved: charcode for linebreak in "memo"



antonin
10-17-2006, 12:17 AM
I need to break lines in a "memo" with a Chr(x) control character - cannot find out what the x should be.

TiA

Antonin

OBP
10-17-2006, 03:32 AM
There is an Ascii version and a VB version, the Ascii code is Chr$(13).
The VB code is vbNewLine

antonin
10-17-2006, 07:00 AM
Actually, Chr(13) does not work (I had tried it before), but vbNewLine works fine.

Antonin

OBP
10-17-2006, 07:22 AM
Antonin, you are right.
That is very interesting, because CHR$(13) works ok in Message box text as a line feed.