Wrox Programmer Forums
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2010, 03:38 PM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default ignore space

hi I have a string that comes from a text box. I want to ignore or delete spaces in this string.
i.g if the input string is : "I have a question" then the result string must be : "Ihaveaquestion" with no space.
 
Old June 18th, 2010, 04:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

And you can't use replace?
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old June 18th, 2010, 04:36 PM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

replace what with what?
could u please give me the code. its too easy for u. please do it
 
Old June 18th, 2010, 07:22 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

it's easy for google. replace at MSDN
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========
 
Old June 19th, 2010, 01:04 AM
Registered User
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know how to use replace but the problem is that I dont know how to show space \s in not working and when I write " " it dosent do anything.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to ignore cases on attribute value 2BOrNot2B XSLT 2 January 30th, 2009 12:03 PM
Ignore Comma in Line Input echovue Access 4 November 2nd, 2005 10:16 AM
cin being skipped. ignore() not working UberNewf Visual C++ 0 June 28th, 2005 04:27 PM
Ignore this post...its crap! clandestine XML 4 May 31st, 2005 06:38 AM
delete/ignore empty column crmpicco Excel VBA 1 May 4th, 2005 08:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.