ABL Reference

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

HEX-DECODE( expression ) |

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.

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)). |

© 2017 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.

Progress® OpenEdge® Release 11.7