Left Function

Syntax:

Left[$](S$, Len)

Group:

String

Description: Returns a string from S$ with only the Len chars.
NOTE: A similar function, LeftB, returns the first Len bytes.

Parameters:

Parameter

Description

S$

Return the left portion of this string value. If this value is Null then Null is returned.

Len

Return this many chars. If S$ is shorter than that then just return S$.

Example:

Sub Main
  Debug.Print Left$("Hello",2) '"He"
End
Sub