HEX

ScriptEigener Objekttyp in der Automation Engine 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 252 characters in hexadecimal form

Comments

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

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

Example

In the example, the string is converted into hexadecimal form. The result "554334" is output to the activation protocol.

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

See also:

Script Elements - Strings

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function