Hi Lonk, thanks for taking a look.

The "DelHashKey()" UDF works in the posted UDF.

I can't get your sample code to run yet. The use of a function such as "isdeclared($$$HashKey)" that uses three $'s causes an error outside of the "execute".

ERROR : invalid method/function call: missing ')'!
Script: C:\data\Scripts\Kix\junk2.kix
Line : 58

The variables ($Hashkey, $Hashvalue) do not need to be global and I have added them the Hash "Dim" statement to declare them as locals.

I will look into incorporating isdeclared(), but do not see why it needed.

Yes I agree that the array names used for the function could be made more unique to avoid any naming collision with variable in the balance of the script.
_________________________
Home page: http://www.kixhelp.com/hb/