I am trying to read/write registry-values and am having probs:
First of all, I create an object for the desired key. This happens within a TRAP for Value Error which comes up when the specificed key does not exist.
Code: Select all
#.bKey←Registry.CurrentUser.OpenSubKey('Software\pbrain.de\',AppName)1 ⍝ 1 = Writeable
So, in order to write a value, I then do:
Code: Select all
#.bKey.SetValue'baas' '123'
And the result is:
EXCEPTION: In den Registrierungsschlüssel kann nicht geschrieben werden.
(= cannot write into this registry-key)
What's going on? According to the doc, the key should be opened for writing, so why can't I then write? Do I need to do anything more?
Thanks
Michael