scripting@wanadoo.nl




RegHEXtoASCII()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
13 August 2003 RegHEXtoASCII()
Authorbryce@isorg.net
Action Converts a registry HEX string key to an ASCII string.
SyntaxRegHEXtoASCII (HEX String) 
Parameters
  • HEX String (Required / String) string of HEX to be converted 
  • Remarksnone 
    Returnsthe ASCII version of the given HEX string. 
    DependenciesNone. 
    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 -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 15 October 2003


    Site Meter