M
Michel Vanderbeke
Hello,
When I want to retrieve data from the register, the defaultvalue doesn't
seem to work correctly.
iCounter =
CInt(My.Computer.Registry.Getvalue("HKEY_LOCAL_MACHINE\Software\MyProg\Settings",
"Articles", "80"))
Is it correct that when the entry in the register does not exist, the string
"80" is taken as default?
This does not seem to work with me.
When the key Articles doesn't exist, there is no error and iCounter is set
to 80.
When the key Settings doesn't exist, there is sometimes an error and
sometimes iCounter is set to 0.
Does anyone have any idea what goes wrong?
Many thanks,
Michel
When I want to retrieve data from the register, the defaultvalue doesn't
seem to work correctly.
iCounter =
CInt(My.Computer.Registry.Getvalue("HKEY_LOCAL_MACHINE\Software\MyProg\Settings",
"Articles", "80"))
Is it correct that when the entry in the register does not exist, the string
"80" is taken as default?
This does not seem to work with me.
When the key Articles doesn't exist, there is no error and iCounter is set
to 80.
When the key Settings doesn't exist, there is sometimes an error and
sometimes iCounter is set to 0.
Does anyone have any idea what goes wrong?
Many thanks,
Michel