Howard,

I believe that your script is not stripping of the double hyphens.

You are using: '"Created 07-13-2002"' as entryname in WriteValue()

You Should use: 'Created 07-13-2002'

The ReadType() statement looks for an entry with this name: Created 07-13-2002

That dosn't exist beacuse you have created an entry named: "Created 07-13-2002"

I have just checked, if you use ReadType() on a nonexisting entry then it reports: REG_NONE
(And @Error = 2)

-Erik