Hello - I'm looking for some documentation of the functions "RegRead" & "RegWrite" I found the functions in the example "register" channel but haven't been able to find documentation explaining the nature of the passed values. Am I missing something? Can someone explain what's what here: RegWrite("RegToken", token, "Authentication")
I assume token is the variable value that was passed into: Sub saveRegistrationToken(token As String) RegToken is ? Authentication is ?
The registry stores key/value pairs, so in the case of RegWrite the first two args are the key and value. The third arg is the section of the registry space to save the key/value pair to. Most channels will just have one section they use for everything, but additional sections are handy if you have multiple channels sharing the same registry space.
Function RegWrite(key as String, val as String, section=invalid) as Void if section = invalid then section = "Default" sec = CreateObject("roRegistrySection", section) sec.Write(key, val) sec.Flush() ' commit it End Function