Len Function

Vraća broj znakova u nizu, ili broj bajtova koji su potrebni za spremanje varijable.

Syntax:

Len (Text As String)

Povratna vrijednost

Dugačko

Parametri:

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

Error codes:

5 Invalid procedure call

Primjer:

Sub ExampleLen

Dim sText as String

    sText = "Las Vegas"

    MsgBox Len(sText) REM Returns 9

End Sub