hi there..i have tried the coding but the number of character includes the spacing..could anyone help me on that?like hw to remove the spaces..i tested the program..for example..i typed in 5 empty spaces..the character shows 5 and the words show 4..
could anyone assist?asap?thanks
Dim str As String
Dim ichar, iWords, i As Integer
'get the number of characters:
str = T1.Text
ichar = str.Length
L1.Text = ichar
'remove the double spacing between sentences:
str = str.Replace(" ", " ")
'get the number of words:
iWords = str.Split(" ").Length
L2.Text = iWords