Left$ Function
Syntax
Left[$](S$, Len)
Group
Description
Returns a string from S$ with only the Len chars.
NOTE: A similar function, LeftB, returns the first Len bytes.
Parameters
| Parameters | Description |
|---|---|
| S$ | Returns the left portion of this string value. If this value is Null, Null is returned. |
| Len | Returns this many chars. If S$ is shorter than that, it returns S$. |
Example
Sub Main Debug.Print Left$("Hello",2) '"He" End Sub
See also
InStr( ), InStrRev( ), Len( ), Mid$( ), Replace$( ), Right$( )