Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry Access
Message
From
20/04/2006 16:57:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Registry Access
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01115152
Message ID:
01115152
Views:
48
I am about ready to scream at this point. I have an application that works with another program & the two communicate via the Windows registry. To date my application has been checking if a registry key exists, loading strings into registry keys, etc... HOWEVER, I now have a need to evaluate the contents of a registry key and cannot seem to find the correct command/syntax. The key I'm evaluating is in the HKEY_LOCAL_MACHINE hive. Here's some of the code that exists currently:

Store NEWOBJECT( "Registry" ,HOME()+ "FFC\Registry.vcx") to oRegistry
#DEFINE HKEY_CURRENT_USER -2147483647
#DEFINE HKEY_LOCAL_MACHINE -2147483646

Store oRegistry.IsKey("Software\CemMap\",HKEY_LOCAL_MACHINE) to lExists
Store IIF(lExists,.t.,.f.) TO _mapx
IF _mapx
Store oRegistry.IsKey("Software\MapInfo\MapX\5.0\",HKEY_LOCAL_MACHINE) to Exists
IF lExists
Store oRegistry.OpenKey("Software\CemMap\",HKEY_CURRENT_USER, .t. ) to nError
IF nError = 0
oRegistry.SetKeyValue( "SearchPaths" , _datam)
ELSE
=MESSAGEBOX("Registry Function Not Successful.")
ENDIF
etc etc

How can I check/compare the contents of "Software\CemMap\SearchPaths",HKEY_CURRENT_USER?

Any suggestions are appreciated.

Terry
Next
Reply
Map
View

Click here to load this message in the networking platform