Script Function: Convert a string into hexadecimal form
HEX(String)
Syntax |
Description/Format |
---|---|
String |
Alphanumeric character string that should be converted |
Return code |
---|
String with a maximum of 252 characters in hexadecimal form |
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.
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:
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function