ASCII Codes and CHR$

BenSteckler

Addicted to Programming
Local time
Today, 19:21
Joined
Oct 4, 2000
Messages
44
I am trying to add a field of text to a memo but I am un able to get it to skip a line.

Example
Sentence one:
Bill Sat on a Rock.
Sentence Two
Jill Stood on the bridge.

When I try to place them together it comes out like this:
Bill Sat on a Rock. Jill Stood on the bridge.

But I want it to skip a line. I was hoping a ASCII code would help but I can't find it. Can anyone help.

Ben_Steckler@hotmail.com


[This message has been edited by BenSteckler (edited 10-04-2000).]
 
Use the VB Constant along with the ampersand (&).

vbCr & vbLf
or
VbNewLine

I use vbNewLine (it's clearer).

Example:
"Bill Sat on a Rock." & vbNewLine & _
"Sentence Two" & vbNewLine & _
"Jill Stood on the bridge."

HTH
RDH

[This message has been edited by R. Hicks (edited 10-05-2000).]
 

Users who are viewing this thread

Back
Top Bottom