Results 1 to 3 of 3

Thread: Counting characters in a text box

  1. #1
    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.

  2. #2
    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

  3. #3
    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

Similar Threads

  1. Replies: 2
    Last Post: 02-02-2012, 01:16 PM
  2. Counting characters in Excel
    By Scooby9044 in forum Windows Software
    Replies: 1
    Last Post: 27-02-2011, 12:31 PM
  3. Replies: 5
    Last Post: 23-12-2010, 07:12 PM
  4. Replies: 2
    Last Post: 09-06-2009, 11:45 AM
  5. How to Delete last Characters from Text String
    By Harshini in forum Software Development
    Replies: 2
    Last Post: 06-05-2009, 03:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,981,577.27996 seconds with 16 queries