Re: The registry calss - VFP8SP2 by Christina
Christina
Sun Jan 06 22:54:59 CST 2008
Sorry for the delay...
GetKeyValue method
Returns the value for a key.
Syntax: GetKeyValue(cValueName, cKeyValue)
Return:
Arguments:
cValueName specifies the name of the value to retrieve.
cKeyValue specifies the value of cValueName.
One of My tries:
aaa = (GetKeyValue("HKEY_CLASSES_ROOT\xyz\value""Data"))
I realize this probably is basic but I get caught.
Best Regards
"Stefan Wuebbe" <stefan.wuebbe@gmx.de> skrev i meddelandet
news:uqcq7AITIHA.748@TK2MSFTNGP04.phx.gbl...
>
> "Christina" <ch.lofberg@eurosoft-se.com> wrote in message
> news:843862FF-26FE-477A-9C77-65C4F7F17583@microsoft.com...
>> Happy new year to all!
>>
>> I hav used the code below to read from the registry:
>> WSHShell = CreateObject("WScript.Shell")
>> lcConvStr = WSHShell.RegRead("HKEY_CLASSES_ROOT\Test\")
>>
>> Sometimes it seems to fail - particular in Vista. UAC i turned off.
>>
>> As an alternativ I´m thinking of using VFP´s class Registry. I dragged
>> the class to a form but I´m not sure about the code to use it. Could
>> somebody please give me an helping hand. A code sample for registry-class
>> corresponding to the code WSHShell...
>
> There are "registry" examples in Tools -> Task Pane -> Solution Samples.
>
> As for HKEY_CLASSES_ROOT, limited users do not have write
> permissions there in WinXP and Vista. Better use HKEY_CURRENT_USER
> for saving values.
>
>
> hth
> -Stefan
>
>
>
> --
> |\_/| ------ ProLib - programmers liberty -----------------
> (.. ) Our MVPs and MCPs make the Fox run....
> - / See us at www.prolib.de or www.AFPages.de
> -----------------------------------------------------------
>