Small company logo:
   History
 
Advertising banner:
 
 Len
Home • Help • Customization Tools • FCAS • Language Reference • Len
 
Purpose
Returns the length of a string argument (as an integer), or the number of bytes required to create a variable.
Syntax
Len (StringExpression | VariableName)


StringExpression
Any valid string expression.

Example
Sub Main()
        Dim s As String, length As Integer
        Dim x As Long, y As Double
        s = "the quick brown fox jumps over the lazy dog"
        length = Len(s)
        ...
                Print "The size of Double is"; Len(y); "bytes"
End Sub