Converts a character string consisting of an
even number of hexadecimal digits (0 through 9 and A through F)
into a RAW value.
Syntax
-
expression
- A character expression containing the value you want to convert.
If the expression does not contain an even number of hexadecimal
digits, or it is the Unknown value (?), the result is
the Unknown value (?). If the expression is a zero-length
value, the result is a zero-length value.
Example
The
following code fragment illustrates how to use the HEX-DECODE function:
DEFINE VARIABLE vRaw as RAW NO-UNDO.
vRaw = HEX-DECODE(HEX-ENCODE(GENERATE-UUID)).
|