Length

To find the length of a string you should use the Len function.

The Len function includes spaces and other symbols.

Example VB code – display the length of user input     show
Example VB code – length validation     show
Try out the Len function
userInput=" "

Len(userInput)=0

Back to index

mph@ghscomputing.co.uk

Updated 09 December 2018