right

right()

Overview

The right() function takes a string and a number as arguments. It returns the specified number of characters from the string's right side.

Return Type

  • Text

Syntax

<variable> = <string>.right( <number> );
ParameterDescriptionData type
<variable>Variable which will contain the returned string value.TEXT
<string>The string from which the characters will be returned.TEXT
<number>

The number of characters which will be returned.

If the number exceeds the count of characters in the string, or a negative value is specified, an error will be encountered during runtime

NUMBER

Examples

product_name="Zoho Creator";
text = product_name.right(7);         // returns "Creator"

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com