Re: How to access registry?



You'll also need a SET CLASSLIB TO registry.vcx or you can use NEWOBJECT()
instead.

--
Fred
Microsoft Visual FoxPro MVP


"Fred Taylor" <ftaylor@xxxxxxxx!REMOVE> wrote in message
news:uAHqtakgHHA.4260@xxxxxxxxxxxxxxxxxxxxxxx
#include registry.h
oReg = CREATEOBJECT("registry")
cValue = ""
?oReg.GetRegKey("AppName",@cValue,"Software\VB and VBA Program Settings",;
HKEY_CURRENT_USER)
?cValue

If the call returns a 0, you've got your key value in cValue.
--
Fred
Microsoft Visual FoxPro MVP


"Mr. Server" <alxgen@xxxxxxxxxxx> wrote in message
news:AB4F6E01-6FD6-45C6-A0F3-F96EBFFD463E@xxxxxxxxxxxxxxxx
i found the REGISTRY class library, thank you for the info Mr. Fred.

just a quick question, i have a vb6 simple program that executes
SaveSetting "AppName", "Section", "Key", Setting
and it saves a registry entries to
HKEY_CURRENT_USER\Software\VB and VBA Program Settings

do you have a sample vfp6 code on how can i access/read or like vb6's
GetSetting from the specified registry key entries?

thank you.

"Fred Taylor" <ftaylor@xxxxxxxx!REMOVE> wrote in message
news:OWJRTocgHHA.3852@xxxxxxxxxxxxxxxxxxxxxxx
There is no task pane in VFP6, Stefan. That didn't come until VFP8, I'm
not quite sure which version.

Take a look for the REGISTRY class library in the FFC folder under your
VFP6 installation. There's a registry class in it that should have all
the methods you need for accessing the registry.

--
Fred
Microsoft Visual FoxPro MVP


"Stefan Wuebbe" <stefan.wuebbe@xxxxxx> wrote in message
news:%23uxIm1YgHHA.4980@xxxxxxxxxxxxxxxxxxxxxxx

"Mr. Server" <alxgen@xxxxxxxxxxx> schrieb im Newsbeitrag
news:1553975F-9A68-4C23-ABD0-0FF1D85418BB@xxxxxxxxxxxxxxxx
i would like to know how can i access registry keys/entries just like
vb6 GetSetting? im using VFP6.??

Have a look at Tools -> TaskPane -> Solution Samples -> search for
"registry"


hth
-Stefan



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------








.



Relevant Pages

  • Re: How to access registry?
    ... Microsoft Visual FoxPro MVP ... GetSetting from the specified registry key entries? ...
    (microsoft.public.fox.vfp.forms)
  • Re: How to access registry?
    ... Microsoft Visual FoxPro MVP ... i would like to know also the equevalent of VB6's GetSetting and VFP6's GetRegKey ... do you have a sample vfp6 code on how can i access/read or like vb6's GetSetting from the specified registry key entries? ...
    (microsoft.public.fox.vfp.forms)
  • Re: How to access registry?
    ... Microsoft Visual FoxPro MVP ... i would like to know also the equevalent of VB6's GetSetting and VFP6's ... GetSetting from the specified registry key entries? ...
    (microsoft.public.fox.vfp.forms)
  • Re: Outlook Mail Automation
    ... "Jim Clay" wrote in message ... >> Microsoft Visual FoxPro MVP ... >>> Description of BCC property of MailItem: ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Open Word in a specific folder
    ... Microsoft Visual FoxPro MVP ... I would I use the Code Window Syntax?? ... default to be a certain folder which will be different for each ...
    (microsoft.public.fox.programmer.exchange)

Loading