Click to See Complete Forum and Search --> : chr$(13)
Dr. Inferno
January 30th, 2000, 03:40 PM
i have a richtextbox. When I want to add text to it, I want it to be added directly to the next line in the richtextbox. How can that be done? I have tried chr(13) and chr$(13) but no hope yet. All I get is an invalid character and the text is on the same line.
Lonely Wolf
January 31st, 2000, 02:26 AM
You have to use the VB const "vbcrlf", it adds new line and line feed. I had this problem too.
chem1
January 31st, 2000, 06:04 AM
The following code will print
"My Name is
Chem1"
dim Msg string
msg="My Name is "
msg= vbCrLf+ "chem1"
msgbox Msg 'or yu can say print Msg
rino_2
January 31st, 2000, 09:50 AM
Better still:
Dim Msg As String
Msg = "My Name is" & vbCrLf & "chem1"
msgbox Msg
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.