Unit TgRegistry

DELPHI 3 Componnent. Par: Gabriel Cabot gcabot@globetrotter.qc.ca Copyright notice: This component is unrestricted freeware. It may be distributed, used and/or modified without restriction. Please note that although this component has been tested and been found to work correctly, you use it entirely at your own risk and I will not be held responsible for any thing that may happend.} {Ce composant est du domaine freeware. Il peut être distribué, utilisé et/ou modifié sans restrictions. Veuillez noter que même si ce composant à été testé and que tout fonctionnait bien, vous l'utilisez à vos propres risques et je ne serai jamais tenu responsable pour aucune sorte de dommages.} {This componnent is a small wrapper for TRegistry and has 3 simples methods which allow you to create, read and delete a key in the windows registry. The value of the keys created with this componnent are always strings. "This should be enought for almost all applications." The key is always a sub key of HKEY_CURRENT_USER. TgReg is a descendant of TComponnent. It's a componnent for Delphi 3. PROPERTIES: NAME Type Description ---------------------------------------------------------------- Key String Name of the key. Value String Value to write or read. DefaultValue String Returned value if the key doesn't exist. METHODS: Name Declaration ------------------------------------------------- SetKey SetKey(Key,Value:String):Boolean; Description: The SetKey method is used to open a key and write the value specified in the Value property. If the key doesn't exist SetKey create it and write the contents of the Value property. SetKey returns False if the operation fails and true if it's okay. GetKey GetKey(Key:String):String; Description: The GetKey method returns the value of the key specified in the Key property. If the key doesn't exist then the method returns the value specified if the DefaultValue property. DelKey DelKey(Key):Boolean; Description: The DelKey method deletes a key from the registry and returns True if it's okay and False if the operation fails. EVENTS: No event available. {Ce composant encapsule l'unité TRegistry et fournie trois (3) méthodes simples qui permettent de créer, lire et effacer une clé de la base de registre. La valeur des clés créées avec ce composant sont de type Chaine (String). Cela suffit dans la plus part des applications. La clé est toujours une sous clé de HKEY_CURRENT_USER. TgReg est un descendant de TComposant. C'est un composant Delphi 3. PROPRIÉTÉS: Nom Type Description ---------------------------------------------------------------- Key String Nom de la clé. Value String Valeur a écrire ou lue. DefaultValue String Valeur de retour si la clé n'existe pas. MÉTHODES: Nom Déclaration ------------------------------------------------- SetKey SetKey(Key,Value:String):Boolean; Description: La méthode SetKey est utilisé pour ouvrir une clé et y mettre la valeur spécifier dans value. Si la clé n'existe pas SetKey l'ajoute et y insére la valeur de Value. SetKey retourne vrai si l'écriture réussi et False dans le cas contraire. GetKey GetKey(Key:String):String; Description: La méthode GetKey retourne la valeur de la clé défini dans Key. Si la clé n'existe pas retourne la valeur spécifié dans la propriété DefaultValue. DelKey DelKey(Key):Boolean; Description: La méthode DelKey supprime une clé de la base de registre et retourne Vrai si l'opération a réussi et False dans le cas contraire. ÉVENEMENTS: Aucun évenement de disponible.

Classes

TgReg -

Functions

Register -

Types

Constants

Variables


Functions


procedure Register;


Types


Constants


Variables