Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i trim this field

Status
Not open for further replies.

devondago

Programmer
Jan 22, 2003
38
0
0
US
I am submitting a form and generating an email message. My problem is the following. I am sending the following.
Message.Subject &= "Systems - Application Request"
Message.Body &= "" & lbluser.Text & vbCrLf
Message.Body &= "From Department: " & lbldeptname.Text & vbCrLf
my lbluser.text is suppose to be the firt name and last name of the person. and is coming out like this
John Doe.
I have tried to use
lbluser.Text = lbluser.Text.ToString()but it doesnt work.
any workarounds?
 
LV and Boulder have a brief discussion a couple of threads down on "white space", you might take a look.

thread855-859517
 
Still need the help...
name coming out like this...
lbluser.Text.Trim()
"John Doe "
how can I get this to trim?
thanks
 
got it....thanks......
added Message.BodyFormat = MailFormat.Html
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top