|
|
|
| 13 August 2003 | RegHEXtoASCII() |
| Author | bryce@isorg.net |
| Action | Converts a registry HEX string key to an ASCII string. |
| Syntax | RegHEXtoASCII (HEX String) |
| Parameters | |
| Remarks | none |
| Returns | the ASCII version of the given HEX string. |
| Dependencies | None. |
| Examples | $xpkey = "HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Categories" ? "The list of Categories in Outlook 2002 "+RegHEXtoASCII(readvalue($xpkey,"Masterlist")) |
| Source |
FUNCTION RegHEXtoASCII ($data)
DIM $return, $i, $hex
FOR $i = 1 TO Len($data) STEP 2
$hex = "&" + Substr($data,$i,2)
$return = $return + Chr(Val($hex))
NEXT
$reghextoascii = $return
ENDFUNCTION ; - RegHEXtoASCII -
|
|
|
|