Addict,

The reason for using the Decimal Version is that when I debug the script, we see - 196609 when I run the following test code. Yes, REGEDIT shows it as 30001.. Have not tried to set the HEX value as I know the Decimal works.

code:
break on cls
$test = READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Options\Mail","EditorPreference")
$test

get $k

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's