Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

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>")
[320 byte] By [kenn_rosie] at [2007-11-11 8:13:52]
# 1 Re: How do they figure out the number of characters?
The .Length of the string will tell you how many characters.

And if you take the original length of the string, and subtract a modified string (all spaces removed - use the Replace function) then you know how many spaces are in the string.

You can use simple math from there.
edburdo at 2007-11-11 21:47:50 >