[TOC] [Prev] [Next] [Bottom]



<@RIGHT>

Syntax

<@RIGHT STR=string NUMCHARS=numChars [ENCODING=encoding]>

Description

Extracts the last number of characters from the string specified in STR and returns the extracted substring.

If the string contains any spaces--except for spaces embedded within meta tags--it must be quoted.

Examples

<@RIGHT STR="alpha" NUMCHARS="3">

This example returns "pha", the last three characters of "alpha", beginning from the right.

<@RIGHT STR="<@INCLUDE FILE='<@APPFILEPATH>BrownFox.txt'>" NUMCHARS="3">

This example returns "Dog", the last three characters of "The Quick Brown Fox Jumps Over The Lazy Dog" (the content of the BrownFox.txt file).

See Also

Encoding Attribute
<@LEFT>
<@LOCATE>
<@REGEX>
<@REPLACE>
<@SUBSTRING>



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.