Try OpenEdge Now
skip to main content
ABL Reference
ABL Syntax Reference : HEX-ENCODE function
 

HEX-ENCODE function

Converts a RAW value into a character string consisting of an even number of hexadecimal digits (0 through 9 and A through F).

Syntax

HEX-ENCODE( expression )
expression
A RAW expression containing the value you want to convert. If the expression 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-ENCODE function:
DEFINE VARIABLE MyUUID AS RAW       NO-UNDO.
DEFINE VARIABLE vChar  AS CHARACTER NO-UNDO.

ASSIGN
  MyUUID = GENERATE-UUID
  vChar  = HEX-ENCODE(MyUUID).

See also

HEX-DECODE function