|
-
Oct 6th, 2005, 09:25 AM
#1
Thread Starter
Hyperactive Member
String.Trim spaces and tabs [Resolved]
I want to trim leading and trailing spaces AND tabs from a string.
How do I specify both characters in the paramarray?
e.g. strTmp = strTmp.Trim( ???? )
i.e. how do I load a "paramarray" with a space and a tab char?
Thanks, DaveBo
Last edited by DaveBo; Oct 6th, 2005 at 09:35 AM.
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
Oct 6th, 2005, 09:28 AM
#2
Re: String.Trim spaces and tabs
(" "c, Convert.ToChar(9))
I think.
I don't live here any more.
-
Oct 6th, 2005, 09:28 AM
#3
Fanatic Member
Re: String.Trim spaces and tabs
strTmp = strTmp.Trim() will get rid of any spaces, tabs, and returns automatically, if I recall.
-
Oct 6th, 2005, 09:35 AM
#4
Thread Starter
Hyperactive Member
Re: String.Trim spaces and tabs
Thanks, I just got this working
strTmp = strTmp.Trim(" ", Chr(9))
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
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
|