Characters
Characters (usually shown as CHAR
) are typically used within a CLEM
expression to perform tests on strings.
For example, you can use the function isuppercode
to
determine whether the first character of a string is uppercase. The following CLEM expression uses a
character to indicate that the test should be performed on the first character of the string:
isuppercode(subscrs(1, "MyString"))
To express the code (in contrast to the location) of a particular character in
a CLEM expression, use single backquotes of the form
`
<character>`
. For example, `A`
,
`Z`
.
Note: There is no
CHAR
storage type for a field, so if a field is derived or filled
with an expression that results in a CHAR
, then that result will be converted to a
string.