Re: How to access registry?
- From: "Mr. Server" <alxgen@xxxxxxxxxxx>
- Date: Fri, 20 Apr 2007 08:22:41 +0800
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@xxxxxxxxxxxxxxxxi 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@xxxxxxxxxxxxxxxxxxxxxxxThere 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@xxxxxxxxxxxxxxxxi 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
-----------------------------------------------------------
.
- Follow-Ups:
- Re: How to access registry?
- From: Fred Taylor
- Re: How to access registry?
- References:
- How to access registry?
- From: Mr. Server
- Re: How to access registry?
- From: Stefan Wuebbe
- Re: How to access registry?
- From: Fred Taylor
- Re: How to access registry?
- From: Mr. Server
- Re: How to access registry?
- From: Fred Taylor
- Re: How to access registry?
- From: Fred Taylor
- How to access registry?
- Prev by Date: Re: How to access registry?
- Next by Date: Re: How to access registry?
- Previous by thread: Re: How to access registry?
- Next by thread: Re: How to access registry?
- Index(es):
Relevant Pages
|
Loading