Hmmm..

Going back and looking at the docs again..

You may want to modify the following line from:
code:
$keyname = ENUMKEY($profilelocation, $index)

to..
code:
$keyname = ENUMKEY( $profilelocation , $index )

You may also need to modify the HKLM, HKCU to be HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER, respectively

HTH,

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