Counting Characters in a string

D

Douglas J. Steele

Just to clarify, Len("YourString") will return 9, since it's counting the
number of characters in the literal "YourString".

If you have a variable that contains the string value you want to check,
you'd use Len(nameofvariable)
 
T

TC

Where, of course, you would replace 'nameofvariable' with the name of your
own variable!

TC :)
 
P

PC Datasheet

Just to be sure you get what you want, recognize that the Len function also
counts spaces.

Len("MyString") = 8
Len("My String") = 9
 
Top