|
-
Jul 19th, 2000, 12:46 AM
#1
Thread Starter
New Member
Have transfered text to a richtextformat form but I want the text string to have new lines occasionally, justified to the left. Have tried \n, $, and cant find this in any index.
Any help would be appreciated.
Thanks
-
Jul 19th, 2000, 12:52 AM
#2
Not sure what you want but.....
string1 & vbCRLF & string2
Will buffer
string1
string2
Hope that helps
-
Jul 19th, 2000, 01:08 AM
#3
Thread Starter
New Member
I have managed to string lots of text together--but will use a shortened example i.e. "Date" & "Time" & "Month" from a template that I developed. I then have been able to export them to another form which has a RTF box. I would like the each one of these to be justifed to the left.
I tried the String1 and String2 but I probably was not doing it correctly. I would appreciate it if you could type it just like it should go on the code. Thanks for helping.
-
Jul 19th, 2000, 02:53 AM
#4
Addicted Member
Have you tried this?
"Date" & vbNewLine & "Time" & vbNewLine & "Month" etc...
This puts each element on a new line (left justified, if the control is).
-
Jul 19th, 2000, 03:06 AM
#5
Ok.......................
Code:
txtBox = "Date" & vbcrlf & "Time" & vbcrlf & "Month"
The rtf should have it's justification property set to Left, and it's multi-line property set to true.
Am using vb5 sp3, so might be a better method in vb6.
-
Jul 19th, 2000, 04:57 AM
#6
Thread Starter
New Member
thank you very much
It has worked--thanks so much.
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
|