HexDecode

Description

Decodes a string value using Hex decoder.

Applies to

CoderObject object

Syntax

coder.HexDecode ( variable )

Argument

Description

coder

The name of the CoderObject object.

variable

A string whose value is the data you want to decode with Hex decoder.


Return value

Blob. Returns the result of the decoding if it succeeds. If any argument's value is null, the method returns null. If an error occurs, throw the exception.

Examples

This statement decodes the data that is encoded using Hex.

Blob lblb_data
String ls_HexStr

CoderObject lnv_CoderObject
lnv_CoderObject = Create CoderObject

// ls_HexStr = lnv_CoderObject.HexEncode(Blob("Test Hex", EncodingANSI!))
ls_HexStr = "5465737420486578"

lblb_data = lnv_CoderObject.HexDecode(ls_HexStr)
messagebox("HexDecode", string(lblb_data, EncodingANSI!))

See also

HexEncode

Base32Decode

Base32Encode

Base64Decode

Base64Encode

Base64UrlDecode

Base64UrlEncode

UrlEncode

UrlDecode