Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I need to trim a variable in .net before I pass it to my sql statement as it is passing a load of whitespace at the end of my sentence.

i.e.

"My question is this...... "

should become

"My question is this......"

 

So i need to trim the whitespace from the right hand side.

 

Can anyone tell me how I trim to the right?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...