security.HexBinary.ToByte

Decodes an hexadecimal string into a BYTE variable.

Syntax

security.HexBinary.ToByte(
   source STRING,
   destination BYTE )
  1. source is a string in hexadecimal.
  2. destination is the BYTE to fill with data.

Usage

Decodes the given hexadecimal string and fills the BYTE variable with binary data.

Important: The BYTE must be located in memory.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).