Simplicty and flexibility!


Support::

Lastc


Parameters


Returns/Result


Examples


Reference

lastc

image\Dql_0023.giflastc

Type

Text Function

Purpose

The lastc function extracts a specified number of characters from the end (right) of a text value.

Syntax

lastc( TEXT VALUE, n)

Returns

A text value n characters in length.

Usage

lastc(FIELDNAME, 1) returns the last character in the field. Trailing spaces are ignored. If there are n or fewer characters in the field, lastc returns the original text value.

Examples

lastc( "DataEase" , 4)

Returns: Ease

 

lastc( "Club ParaDEASE" , 4)

Returns: EASE

 

lastc( FIRST NAME, 4)

Returns:The last four characters in the FIRST NAME field for every record that is processed. If the FIRST NAME field contains the value Roger, the function returns oger.

See Also


On the forum about Lastc

StringReplace(), CHR(), LastC() and ConCat() used to reformat number to export number

Download Sample This is quite straightforward but as it again showcase some of our new functions we'll happy to showcase it. We simply added th...

Product: Dataease [{8}]FIVE. Written by DataEase 28/02/15 at 15:00:40

On the blog about Lastc


dg3_HelpView