The DelHashKey("$r","$y") UDF is part of the HASH udf collection. If you check the code you will see that the Array name submitted is altered in the UDF. I did this to avoid potential conflicts with other arrays used in the program.

$HashKey = $HashName + "key"
$HashValue = $HashName + "value"

The concept is valid for what you tried Jose, buit the code is all structure to work with arrays created by the UDF Function Hash($HashName, $Key, optional $Value)

Did you try the entire set of UDFs? You may find the use of HASH very easy. and it provides a way to remove those undesired values.

Link: Hash() Library UDF's
_________________________
Home page: http://www.kixhelp.com/hb/