6.1.2.11.1.19 Left / LeftB

Function Declaration

 Function Left(String, Length As Long) 

Parameter

Description

String

String expression from which the leftmost characters are returned. If string contains Null, Null is returned.

Length

Long containing a Numeric expression indicating how many characters to return. If it equals the data value 0, a zero-length string ("") is returned. If it’s greater than or equal to the number of characters in String, the entire string is returned.

Runtime Semantics.

§ Returns a String containing a specified number of characters from the left side of a string.

§ Note: use the LeftB function with byte data contained in a string. Instead of specifying the number of characters to return, length specifies the number of bytes.