|
-
January 30th, 2000, 04:40 PM
#1
chr$(13)
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.
-
January 31st, 2000, 03:26 AM
#2
Re: chr$(13)
You have to use the VB const "vbcrlf", it adds new line and line feed. I had this problem too.
Something over there is coding....
... and you don't know!
-
January 31st, 2000, 07:04 AM
#3
Re: chr$(13)
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
-
January 31st, 2000, 10:50 AM
#4
Re: chr$(13)
Better still:
Dim Msg As String
Msg = "My Name is" & vbCrLf & "chem1"
msgbox Msg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|