Len Function

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

Syntax:

Len (Text As String)

Return value:

Long

پارامېتىر

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

Error codes:

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err5 not found).

مىسال:

Sub ExampleLen

Dim sText as String

    sText = "Las Vegas"

    MsgBox Len(sText) REM Returns 9

End Sub