Re: How to access registry?



Fred Thank you very much...

i would like to know also the equevalent of VB6's GetSetting and VFP6's GetRegKey

GetSetting Syntax:
GetSetting(appname, section, key[, default])

GetRegKey
GetRegKey(cOptName, cOptVal, cKeyPath, nUserKey)


"Fred Taylor" <ftaylor@xxxxxxxx!REMOVE> wrote in message news:%23JFZdhlgHHA.4260@xxxxxxxxxxxxxxxxxxxxxxx
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 ... 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: How to access registry?
    ... i found the REGISTRY class library, thank you for the info Mr. Fred. ... Take a look for the REGISTRY class library in the FFC folder under your VFP6 installation. ... Microsoft Visual FoxPro MVP ...
    (microsoft.public.fox.vfp.forms)
  • Re: How to access registry?
    ... Microsoft Visual FoxPro MVP ... GetSetting from the specified registry key entries? ...
    (microsoft.public.fox.vfp.forms)
  • Re: Find & Replace in RegEdit Registry
    ... If you don't want to get into the Registry ... up the GetAllSettings function. ... GetSetting ... GetAllSettings retrieves ...
    (microsoft.public.vb.general.discussion)

Loading