hextobinary(
VALUE
)
The hextobinary( function converts a sequence of hexadecimal digits into a raw binary data value.
Parameters
This function has one parameter:
value – is a text item that contains the hexadecimal number you want to convert.
Description
This function converts a sequence of hexadecimal digits into a raw binary data value. There is no limit on the length of this binary value.
hextobinary("4142434445464748494a4b4c4d4e") ☞ ABCDEFGHIJKLMN
Note: This example converts the hexadecimal string into binary data, which is then automatically converted to text. This works fine for 7-bit ASCII, but will not work properly for 8-bit characters. See the binarytotext( amd texttobinary( functions to learn how to handle conversion of binary data to text using different encoding methods.
Note: This function is similar to the radix( function when used with more than 16 hexadecimal digits. The hextobinary( function, however, will always return a binary value, even if only a single hex digit is supplied (the radix( function will return a numeric value if less than 17 hexadecimal digits are supplied).
Error Messages
hextobinary( function error: input number contains illegal digit. – The input value contains an invalid digit. A valid digit may be 0–9 or A-F or a-f.
See Also
- bigendianbinaryvalue( -- converts big endian binary data (a byte, word, or longword) into an unsigned number (see Binary Data).
- Binary Data -- Panorama allows a formula or procedure to work with raw binary data.
- binarydatabuild( -- builds a binary value by scanning a database and assembling individual binary values for every record (including unselected records) in the database.
- binarytotext( -- converts binary data into text, optionally using a specified encoding.
- binaryvalue( -- converts binary data (a byte, word, longword, or longlongword) into a number (see Binary Data).
- byte( -- converts a number into a single byte of binary data (see Binary Data).
- bytearray( -- extracts a value from an array of bytes (see [Binary Data]).
- bytepattern( -- converts a byte count to text: 543 Bytes, 543 Kb, 123 Mb, 3.2 Gb
- chunkarray( -- extracts a binary "chunk" from binary data (see Binary Data).
- Data Arrays -- A numbered collection of data values.
- Data Dictionaries -- Overview of Panorama's key/value data dictionaries.
- hex( -- converts a text item containing a hexadecimal number into a standard number (decimal).
- hexbyte( -- converts a limited range of decimal numbers to a two-digit hexadecimal number expressed as a text string.
- hexlong( -- converts a decimal number to an eight-digit hexadecimal number expressed as a text string
- hexstr( -- converts a number to text formatted as a hexadecimal number.
- hexword( -- converts a decimal number to a four-digit hexadecimal number expressed as a text string.
- littleendianbinaryvalue( -- converts little endian binary data (a byte, word, longword, or longlongword) into an unsigned number (see Binary Data).
- longlongword( -- converts a number into a 64 bit longword (8 bytes) of binary data (see Binary Data).
- longlongwordarray( -- extracts a value from an array of 64 bit longlongwords (see [Binary Data]).
- longword( -- converts a number into a 32 bit longword (4 bytes) of binary data (see Binary Data).
- longwordarray( -- extracts a value from an array of 32 bit longwords (see [Binary Data]).
- radix( -- converts a text item containing a number in a radix between 2 and 36 into a decimal number.
- radixstr( -- converts a number into a text item containing the equivalent number in a radix between 2 and 36.
- signedbinaryvalue( -- converts binary data (a byte, word, longword, or longlongword) into a signed number (see Binary Data).
- texttobinary( -- converts text into binary data, optionally using a specified encoding.
- word( -- converts a number into a single word (2 bytes) of binary data (see Binary Data).
- wordarray( -- extracts a value from an array of 16 bit words (see Binary Data).
History
10.0 | New | New in this version. |