HexToStr

From SCAR Divi Manual
Revision as of 16:01, 9 February 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function HexToStr(const Str: AnsiString): AnsiString;

Availability

SCAR Divi 3.31 > Current

Description

Decodes a given string Str from hexadecimal format to a regular string. If the input string was not in hexadecimal format, the function returns an empty string. The entered string is not case-sensitive. This process can be reversed with StrToHex.

Example

begin
  WriteLn(HexToStr('48656C6C6F20576F726C6421'));
end.

Output:

Hello World!

See Also