Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > StrLeft

StrLeft

Gets the left-most characters from a string.

Syntax

StrLeft(String, N)

String:

The source string.

N:

The number of characters to get from the source string.

Return Value

A string containing the left-most N characters of String.

Related Functions

StrRight, StrMid, StrLength

Example

Variable=StrLeft("ABCDEF",2);
! Sets Variable to "AB".

See Also

String Functions