Left

Contents

Description

This function returns the leftmost n characters from the string.

Syntax

string Left(string str, int n)

Parameters

str

is the string you want to extract.

n

is the number of characters you want to extract.

Return

Returns leftmost n string.

Example

string str1$ = "abcde";
string strLeft$ = Left(str1$,3)$;
strLeft$ = ; //should return abc

See Also

Right