![]() |
![]() |
![]() |
![]() |
![]() |
This function converts a charstring value to a hexstring, where each character in the charstring represents the value of one hexadecimal digit in the resulting hexstring in the same order. The incoming charstring may contain any number of characters. A dynamic test case error occurs if one or more characters of the charstring are outside the ranges "0" - "9", "A" - "F" and "a" - "f".
(This is an additional predefined function, supported by TITAN.)
Related keyword:
str2hex(charstring value) return hexstring |
This function is the reverse of the standardized hex2str.
Example 1:
var hexstring myh := str2hex("1D7"); // variable myh will contain '1D7'H