XFA Specification
Chapter 23, FormCalc Specification
String Built-in Functions
884
Right()
This function extracts a number of characters from a given string, beginning with the last character on the
right.
Syntax
Right(s1, n1)
Parameters
s1
is the string to be extract from.
n1
is the number of characters to extract.
Returns
The extracted string or null if any of its parameters are null.
If the number of characters to extract is greater than the length of the string, the function returns the
whole string.
If the number of characters to extract is 0 or less, the function returns the empty string.
Examples
Right("ABC", 2)
returns "BC".
Right("ABC", 10)
returns "ABC".
Right("XYZ-3031", 4)
returns "3031".
Home Index Bookmark Pages
Pages: Home Index All Pages