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

How Do I Determine How Many characters are in a Text box

I Hve looked for the ansewer for the last day and 1/2 no luck plz help
Code plz or direct link to code :)
[109 byte] By [Code_Writer] at [2007-11-11 6:38:21]
# 1 Re: How Do I Determine How Many characters are in a Text box
Which property of a TextBox (http://www.developerfusion.co.uk/show/76/2/) returns its contents?
Which VB function returns the length of a string (http://www.google.com/search?q=vb+string+length)?

Now, put them together: Get the contents of the TextBox, and use the string length function to return its length. You can do it! :)
Phil Weber at 2007-11-11 17:28:13 >
# 2 Re: How Do I Determine How Many characters are in a Text box
thank you
Code_Writer at 2007-11-11 17:29:13 >
# 3 Re: How Do I Determine How Many characters are in a Text box
OK, so what's the answer? How do you determine the number of characters in a textbox?
Phil Weber at 2007-11-11 17:30:08 >
# 4 Re: How Do I Determine How Many characters are in a Text box
Len(MyString)
Code_Writer at 2007-11-11 17:31:13 >
# 5 Re: How Do I Determine How Many characters are in a Text box
Yes, or:

Len(txtBox.Text)

:)
Phil Weber at 2007-11-11 17:32:12 >
# 6 Re: How Do I Determine How Many characters are in a Text box
thank you
Code_Writer at 2007-11-11 17:33:11 >