Functions Reference

Table Of Contents
Chapter 12
|
Text functions 177
Data type returned
text
Description
Returns the specified numberOfCharacters in text, counting from the right.
Examples
Right(“Manufacturing”;4) returns ring.
Right(Name;Length(Name) - Position(Name;“ “;1;1)) returns Cannon,
when the Name field contains Michelle Cannon.
Right(SerialNumber;3) & Upper(Left(LastName;4)) returns 187FERR when
the SerialNumber text field contains 00-48-187 and LastName contains Ferrini.
RightValues
Format
RightValues(text;numberOfValues)
Parameters
text - any text expression or text field
numberOfValues - any numeric expression or field containing a number
Important See Design functions, page 35 for information about literal text parameters.
Data type returned
text
Description
Returns a text result containing the specified numberOfValues in text starting from the
right.
Values are text items separated by carriage returns. You can place several items together
to create a carriage return-delimited list of values. A value can be empty, a single
character, a word, a sentence, or a paragraph. When you press Return you start creating
a new value. The last value will be recognized with or without a carriage return.
When the text parameter is a literal string as in the example below, you must insert a
literal carriage return character between each item in the list. In the Specify Calculation
dialog box, click the ¶ button to insert a literal carriage return character.
Each value that is returned ends with a carriage return, allowing lists to be easily
concatenated.