Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Registry Class Syntax
Message
De
14/10/1999 19:18:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00276150
Message ID:
00276632
Vues:
23
Thanks a million for the help. If I might ask what method do I use to write a key and a value if it is not there? What I want to do is store some info about the program during installation in the registry and read it back when the program starts.

THanks


>>Does anyone know the proper syntax to use the GetKeyValue method of the VFP6.0 Registry class?
>>
>>Thanks
>
>I don't think you want to use .GetKeyValue. You may want .GetRegKey (which uses .OpenKey and .GetKeyValue to work)
>
>To find the current value of 'ANSI' under the vfp OPTIONS key in the reg.
>
>#DEFINE HKEY_LOCAL_MACHINE -2147483647 && Defined in registry.h file
>
>cKeyPath = 'Software\Microsoft\VisualfoxPro\6.0\Options'
>cOpt = 'ANSI'
>thevalue = space(256) && This is where the value will end up
>
>o = newobject('registry')
>o.GetRegKey(cOpt, ;
> @TheValue, ;
> cKeyPath, ;
> HKEY_LOCAL_MACHINE)
>
>? TheValue
>release o
>
>hth
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform