To use a variable in a function (like DELVALUE) you include the variable outside of any quotation marks. Examples:

$subkey="HKLM\Software"
$entry="your entry here"
DELVALUE($subkey,$entry)

or...

DELVALUE("HKLM\Software\"+@userid,"your entry here")

[ 08 May 2002, 18:10: Message edited by: Chris S. ]