Left Function

Syntax

String Left(String string, Number numberOfCharacters)

Return Value

String

A string that contains the specified number of characters from the left side of the original string.

Purpose

This function retrieves a substring from the left side of a string of the specified number of characters.

Parameters

string as String

A string.

numberOfCharacters as Number

The number of characters to return from the left side of the string. If this number is greater than the number of characters available, the function returns the entire string.