Right
String functions right
syntax
- right(string_dataitem, length)
definition
right(string_dataitem, length) results in a substring of string_dataitem with the number of characters of the length Argument, starting from the right of the string_dataitem.
description
right(A, 3) is a synonym for Substr(A, Strlen(A) - 3, 3).
applies to
- Data item string_dataitem with string Value type
- literal or Parameter length with uint32 value type
since version
7.155
example
attribute<string> rightA (ADomain) := right(A, 3);
| A | rightA |
|---|---|
| ‘Test’ | ‘est’ |
| ‘88hallo99’ | ‘o99’ |
| ’+)’ | ’+)’ |
| ‘twee woorden’ | ‘den’ |
| ’ test met spatie’ | ‘tie’ |
ADomain, nr of rows = 5