Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get value out of registry if know the key
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700638
Message ID:
00701282
Views:
16
>Alejandro
>Could you tell me how to get a value out of the rgistry. Specifically I want to read a registry key (I wil know the Key) and determine if the environment is running a Citrix server.
>Thanks
>Carolyn Hamrick
>CSI, Inc
>Easley, Sc
>chamrick@csi-plus.com

Here's an example using registry.vcx:
SET CLASSLIB TO "c:\program files\microsoft visual Foxpro 7\ffc\Registry.vcx" ADDITIVE
oReg = CREATEOBJECT("Registry")
RELEASE CLASSLIB "c:\program files\microsoft visual Foxpro 7\ffc\Registry"
IF oReg.IsKey("Visual.Foxpro.Application.7")
  IF oReg.OpenKey("Visual.Foxpro.Application.7") = 0 && No Error
    lcbuffer = SPACE(260)
    oReg.GetKeyValue("", @lcbuffer)
    oReg.CloseKey
  ENDIF 
ENDIF

? lcbuffer

oReg = NULL
Previous
Reply
Map
View

Click here to load this message in the networking platform