Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get value out of registry if know the key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00700638
Message ID:
00701282
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform