Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry Access - VFP Foundation Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00311681
Message ID:
00311697
Vues:
13
>That does help. I modified my code by using your information and it is returning a 0. But how do I get to the key value?

If the function is returning a zero, then it means that it succeeded. Here's a code snippet retrieves the resolution width option from the VFP options
SET CLASSLIB TO REGISTRY.VCX ADDITIVE
oReg = CREATEOBJECT('Registry')
RELEASE CLASSLIB REGISTRY
lnvalue = 0
lcentry = "ResWidth"
lcpath = "Software\Microsoft\VisualFoxPro\6.0\Options"
IF oReg.GetKeyValue(lcentry, @lnvalue, lcpath, HKEY_CURRENT_USER) = 0
  ? lnvalue
ELSE
  * Error
ENDIF
Note the ampersand. That passes the variable by reference.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform