2LAEG‖

EPWj7‖Len Function

zQW3g‖Returns the number of characters in a string, or the number of bytes that are required to store a variable.

gakob‖Syntax:


RpCUx‖Len (Text As String)

NuEBd‖Return value:

Long

FyaMN‖Parameters:

oJqV5‖Text: Any string expression or a variable of another type.

SEjHR‖Error codes:

5 Invalid procedure call

cDZhe‖Example:


Sub ExampleLen
Dim sText as String
    sText = "Las Vegas"
    MsgBox Len(sText) ' 9
End Sub