XFA Specification
Chapter 23, FormCalc Specification
String Built-in Functions
878
Left()
This function extracts a number of characters from a given string, starting with the first character on the
left.
Syntax
Left(s1, n1)
Parameters
s1
is the string to 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
Left("ABCD", 2)
returns "AB".
Left("ABCD", 10)
returns "ABCD".
Left("XYZ-3031", 3)
returns "XYZ".
Home Index Bookmark Pages
Pages: Home Index All Pages