Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 May 31st, 2005, 06:04 PM
Authorized User
 
Join Date: Dec 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Processing String

I thank in advance anyone that can offer advice.

I want to prompt a user to input a string such as: "The quick brown fox jumped over the lazy dog." And I want to be able to remove any spaces between the words. So the modificedstring would look like this when done: "Thequickbrownfoxjumpedoverthelazydog."

How would I go about modifying the string to remove the spaces?

Please help!

 
Old May 31st, 2005, 11:57 PM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Use yourstring.Replace(' ','')

Prashant


 
Old June 2nd, 2005, 06:07 PM
Authorized User
 
Join Date: Dec 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Prashant,thank you for the tip. It worked great!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Node Processing adamflynn XSLT 6 September 7th, 2006 05:42 AM
Where is the processing done in ADP Scripts82 Access VBA 3 March 23rd, 2006 12:00 AM
image processing ck C++ Programming 0 February 27th, 2005 03:33 AM
image processing ck Visual C++ 0 February 27th, 2005 03:31 AM





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