TRsRegistry

Created by Jeff Hiscock

Created on 03/15/00 9:28 PM

  1. Purpose
  2. Component for reading and writing to the windows registry

  3. Inheritance
  4. TComponent

  5. Properties
    1. Public
    2. There are no public properties.

    3. Published
    Name Data Type Notes
    BaseKey String Defaulted to Software\Rapid\

    Sub key of HKEY_CURRENT_USER\

    TargetKey String Sub key below the base key
    TargetValue String Value name to read or write
    DontCreate Bool If false the entry is created when written.
  6. Methods
    1. Public
    Declaration Notes
    String ReadString() Read the string value based on the Base Key , Target Key and Value properties
    bool ReadBool() Read a Boolean value as above
    int ReadInteger() Read an integer value as above
    void ReadSection( TStringList* retvals) Reads a section based on the current TargetKey + SubKey. The return values are in the in/out parameter. This TStringList must not be NULL when called.
    bool WriteString(String value) Write the string value based on the Base Key, Target Key and the Value properties. Return value is if the read was successful
    bool WriteBool (bool value) Write Boolean value as above
    bool WriteInteger (int value) Write integer value as above

     

  7. Events
  8. Declaration Notes
    Classes::TnotifyEvent OnReadError Event for exception on read
    Classes::TnotifyEvent OnWriteError Event for exception on write
  9. Notes

 

    Download TRsRegistry and documentation