Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you don't want to bother with error checking, then use the alternative READDEF service.

Example

Code Block
* Read a value from the registry
If SRP_Registry("READ", "HKCU\Software\MyApp", "ShowFullscreen", Value, Error) EQ 0 then
   Msg(@Window, "READ Error: ":Error:@FM:@FM:@FM:4)
end

* Read a default value from the registry
If SRP_Registry("READ", "HKCU\Software\MyApp", "", Value, Error) EQ 0 then
   Msg(@Window, "READ Error: ":Error:@FM:@FM:@FM:4)
end