Counting characters in a text box
Hello friends,
I want to count characters in textbox.For example when the user click on command button check it will display as The character count is: ".
I try to use Label1.Caption = "The character count is" + "Text1.Textlength"
But of no use can anyone help me out with this issue.
Re: Counting characters in a text box
Sure i will help you out with this for that you need to use the following code.
Code:
Label1.Caption = "The character count is" & Len(text1.text)
Intel Core 2 Duo 2.8 Ghz
G31 Asrock Motherboard with Intel chipset
2gb RAM
256 Nvidia Graphic Card
200gb HDD
Re: Counting characters in a text box
You an also try this also too
Code:
Label1.Caption = "The character count is " + strlength(Text1.Textlength)
Hope it will work for you.
Intel Dual core 2.66 Ghz
915 MSI Motherboard with Intel chipset
512 mb RAM
80gb HDD