Thanks a million for the help. If I might ask what method do I use to write a key and a value if it is not there? What I want to do is store some info about the program during installation in the registry and read it back when the program starts.
THanks
>>Does anyone know the proper syntax to use the GetKeyValue method of the VFP6.0 Registry class?
>>
>>Thanks
>
>I don't think you want to use .GetKeyValue. You may want .GetRegKey (which uses .OpenKey and .GetKeyValue to work)
>
>To find the current value of 'ANSI' under the vfp OPTIONS key in the reg.
>
>#DEFINE HKEY_LOCAL_MACHINE -2147483647 && Defined in registry.h file
>
>cKeyPath = 'Software\Microsoft\VisualfoxPro\6.0\Options'
>cOpt = 'ANSI'
>thevalue = space(256) && This is where the value will end up
>
>o = newobject('registry')
>o.GetRegKey(cOpt, ;
> @TheValue, ;
> cKeyPath, ;
> HKEY_LOCAL_MACHINE)
>
>? TheValue
>release o
>
>hth
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only