Cicode Programming Reference > Cicode Function Categories > String Functions > 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, Using the Caret Escape Sequence Character

Published June 2018