Len
Returns the number of characters in a string.
Len
Returns the length of a string expression.
Syntax
Len(string)
Parameters
| Parameter | Type | Description |
|---|---|---|
| string | String | The string to measure. |
Return Value
Long — the number of characters in string. Returns 0 for an empty string.
Example
Dim n As Long
n = Len("Hello")
Print n ' Output: 5