Results 1 to 4 of 4

Thread: Count the number of characters in a textbox?

  1. #1

    Thread Starter
    Lively Member Blaster's Avatar
    Join Date
    Jun 2001
    Posts
    70

    Question Count the number of characters in a textbox?

    how do you do it?
    count how many characters you typed

  2. #2
    gaffa
    Guest
    Len(Text1.Text) will return the number of characters in a textbox (or a string if you use Len(strTemp)

    - gaffa

  3. #3
    Junior Member
    Join Date
    Jun 2001
    Location
    Redcar, UK
    Posts
    24
    Use the Len function in VB

    Code:
    Dim lngNum as Long
    lngNum = Len(Text1.text)
    
    msgBox lngNum & " Chars have been entered in this box"
    Hope this helps.
    "Three minutes thought would suffice to find this out; but thought is irksome and three minutes is a long time."


    "The supreme irony of life is that hardly anyone gets out of it alive."

  4. #4

    Thread Starter
    Lively Member Blaster's Avatar
    Join Date
    Jun 2001
    Posts
    70
    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width