HEX

Script Function: Convert a string into hexadecimal form

Syntax

HEX (String)

Syntax

Description/Format

String

Alphanumeric character string that should be converted
Format: script literal or script variable


Return code

String with a maximum of 256 characters in hexadecimal form

Comments

With this script function, each individual character of a String can be converted according to the hexadecimal character set.

The script function is given a String that can consist of not more than 128 characters. If the String is longer, it will be truncated to 128 characters without an error message.

Example

The following example converts a string into hexadecimal form, and prints the result (554334) in the activation report of the job.

:SET &RET#=HEX("UC4")
:
PRINT &RET#

The output in the activation report would look like this:

2016-03-20 15:14:06 - U00020408 554334

See also:

Script Elements - Strings

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function