Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 23-03-2009
Member
 
Join Date: Jan 2009
Posts: 126
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.
Reply With Quote
  #2  
Old 23-03-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
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
Reply With Quote
  #3  
Old 24-03-2009
Member
 
Join Date: Nov 2005
Posts: 403
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Counting characters in a text box"
Thread Thread Starter Forum Replies Last Post
How to copy/paste content from Text Editor to Excel without unwanted characters YajasK MS Office Support 2 02-02-2012 01:16 PM
Counting characters in Excel Scooby9044 Windows Software 1 27-02-2011 12:31 PM
Special Characters in SMS turn them shorter (70 characters instead of 160 characters) Xymaya Portable Devices 5 23-12-2010 07:12 PM
How to define formula to Remove characters from text and leave numbers Recko Software Development 2 09-06-2009 11:45 AM
How to Delete last Characters from Text String Harshini Software Development 2 06-05-2009 03:24 PM


All times are GMT +5.5. The time now is 04:41 AM.