Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry class
Message
 
To
09/04/2003 17:02:36
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00775769
Message ID:
00775973
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform