Len Function

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

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


FileLen (Text As String)

āļ†āļ´āˇƒāˇ” āļŊāļļāˇāļ¯āˇ™āļą āļ…āļœāļē:

Long

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

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

Error codes:

5 Invalid procedure call

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


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

Please support us!