left Function

Function:

Returns len leftmost characters of a string sourcestring.

Syntax:

left(byref sourcestr as string, len as byte) as string

See Also:

right, mid


Part

Description

sourcestr

String from which to take len leftmost characters.

len

Number of characters to take.


Examples

Tibbo BASIC
ss = left("ABCDE",3) ' result will be 'ABC

left Function

Examples