Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 March 14th, 2006, 02:39 PM
Authorized User
 
Join Date: Jan 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do they figure out the number of characters?

VB.net
I am trying to learn how to write a document and saw this code
below: How do they figure out the number of characters?
Number of characters with spaces?

WriteLine("<o:Characters>326</o:Characters>")
WriteLine("<o:CharactersWithSpaces>382</o:CharactersWithSpaces>")

 
Old March 20th, 2006, 04:23 AM
Registered User
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

All Characters can be reffered to as a string
if can check Chapter 6(string menupulation) Visual Basic.Net by Daine Zak
You will note that there is property of a string that is used to Check and search for a specific character.Using any Book of VB.Net try to use string.Length which with tell you the number of characters including the spaces and use string.indexof to search for the spaces and use string.remove to remove the spaces then back to string.length to get the number of characters without the spaces.
Hope and trusting my respose will be highly useful

LT Bebeza





Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't figure this out. aaronmuslim XSLT 4 March 20th, 2008 11:13 AM
Randum number and characters in image using php [email protected] PHP How-To 0 February 27th, 2007 09:29 AM
put a limit on the number of characters entered in crmpicco HTML Code Clinic 6 April 12th, 2005 06:08 AM





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