Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry class
Message
 
À
09/04/2003 17:02:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00775769
Message ID:
00775973
Vues:
8
This message has been marked as the solution to the initial question of the thread.
>How can I return a registry key value using the registry.vcx
>
>I have tried
>
>? thisform.filereg1.getkeyvalue("HKEY_LOCAL_MACHINE\software\clients\mail")
>
>and may variations of but all it ever returns is "-150"

Steve,

Are you talking about the class in the FFC. If so, here's what you do:
#DEFINE HKEY_LOCAL_MACHINE -2147483646
SET CLASSLIB TO registry.vcx
oReg = CREATEOBJECT('registry')
? oReg.Openkey('software\clients\mail', HKEY_LOCAL_MACHINE, .f.)
lcvalue = SPACE(260)
? oReg.Getkeyvalue("", @lcvalue)
? lcvalue
? oReg.Closekey()
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform