|
-
Jun 14th, 2000, 09:22 AM
#1
Thread Starter
Member
Using Vb6 and the "Replace Function" in a function allowing the user to remove things from a string like ">". This works great but can you use it to trim spaces after a crlf?When the string is returned to the Multiline textbox I'm trying to get all aligned to the left but all the spaces stay. I've tried using the trim fuction with no luck. IF not is it possible with the "Split Function"? Thanks in advance
-
Jun 14th, 2000, 12:56 PM
#2
Fanatic Member
Can you be a little more specific about what you are doing?
What do you mean by spaces following the CrLF ?? these would be on the next line? what are you splitting with? are you splitting with CRLF to cut to lines??
Cheers
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
-
Jun 15th, 2000, 08:30 AM
#3
Thread Starter
Member
It's to clean the internet ">" out of email. The only thing is the email sometimes large amount of spaces on new lines and i want to trim those spaces to get everything aligned to the left. The "replace" in vb6 i could replace the VBCRLF but i found out searching today that i could split on the vbcrlf and then use the trim function to clean both sides. It now works, thanks for helping anyway
-
Jun 15th, 2000, 08:36 AM
#4
Fanatic Member
The > in email actually has a following space so try
EmailText = Replace(EmailText, "> ", "")
...first.
Paul Dwyer 
Network Engineer
Aussie In Tokyo
Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)
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
|