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 scriptA particular Automation Engine object type. functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,…, 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
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |