### Right (str, length)

Basic and Crystal syntax.

##### Arguments

- str is a text string.
- Length is a whole number indicating the number of characters to be extracted from str.

##### Returns

Text String

##### Action

Extracts the given number of text characters from the right side of the specified string.

##### Typical uses

Use this function to obtain just the right part of a string. For instance, use it to obtain the last four digits of social security numbers stored in a field.

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

`Right("abcdefg", 3)`

Returns "efg".

`Right({table.SSNUM}, 4)`

Returns the last 4 digits of the social security number as a String.

##### Comments

This function is designed to work like the Visual Basic function of the same name.

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com