Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How many characters???

Status
Not open for further replies.

ghayman73

Technical User
Jul 3, 2002
55
FR
I am trying to display how many characters are in a text field like so

name=grant

how many=5.

however i also need it to count the blank spaces.

name=grant hayman

how many=12 (not 11)

is this possible and how do i display it as a numerical value.

all help is appreciated.


Grant
 
using the Length function

Len([ControlName])


PaulF
 
Thanks paul ive been looking at the Len() function but was unsure how to use it.

any pointers.

thanks grant
 
Hi Grant,

The
Code:
Len
function will give you what you want ...

Code:
Text = "Grant Hayman"
MsgBox Len(Text)
Code:
 ' will display 12

Enjoy,
Tony

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top