locked
How to detect how many characters are in a textbox? RRS feed

  • Question

  • I am writing a very basic program for one of my classes at Cal Poly Pomona

    I need a function that will detect and output how many total characters are in a textbox.

    Can I use the InStr function? Like, for example

    Instr(1, textboxname.text, x*) where x* is something that will detect the end of the textbox characters?

    Thanks for reading!

    Sunday, April 20, 2014 8:00 AM

Answers

  • You can get the text of the box using textboxname.text which is a string.  To get the number of characters use textboxname.text.Count or textboxname.text.Length 


    jdweng

    Sunday, April 20, 2014 12:10 PM