Hi,

I used the code to access the registry as found at:

http://www.vbworld.net/registry/registry2/index5.html

However, it keeps giving me a type mismatch error when I try to use it to store
a number.

So my question is, how can I store an integer (not a string) to the registry?

I would appreciate an example which writes the number 1 to "HKEY_CURRENT_USER\Software\test\testkey".

Thanks!

Dan