# left, right, mid

### left(source, len)

Return the left len characters from a string

### right(source, len)

Return the right len characters from a string

### mid(source, start, len)

Return the len characters from position start (1 origin)

## Arguments

Argument | Data Type | Description
source | string | String to be operated on
len | number | amount of string to be returned

## Returns

Part of the string determined by the len argument.

## Description

Used to return the part of the string which will be determined by the len argument. The first character of the string counts as 1. If the length argument is longer than the string then the whole string is returned. If the length parameter is less than 0 then nothing will be returned. Spaces are counted as characters.

## Examples

Assume that field 1 holds the string value The Quick Brown Fox

Example | Returns | Description
left("The slow tortoise", 10) | The slow t | returns the string 10 characters from the left
right(#1, 5) | uick Brown Fox | returns the string starting from the 5 character from the left
mid(#1, 2, 10) | e Quick Br | returns 10 characters from the second character

## See Also

snip(), snipNo(), substr()