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