The WriteValue() line is all wrong.

hint
It should look pretty much the same as my ReadValue() except a few more parms.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.