Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing numeric values in registry...
Message
 
À
20/04/1998 23:54:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00093416
Message ID:
00094036
Vues:
38
>If you look carefully in that prg, you'll find the ReadRegistryInt() and WriteRegistryInt() methods that do exactly what you need. So, there's nothing to modify...
>
>Vlad
>
>>I'm currently using Registry.PRG from the VFP samples to access some Character entries in the registry (it looks like that is all that the Registry class handles). Has anyone modified this program to grab numeric values from the registry or are there more complete classes available for accessing the registry with Fox?
>>
>>Dave


Maybe we have registry.prg from different sources? In the 5.0a VFP\SAMPLES\CLASSES directory the registry.prg doesn't have the methods you describe above. I get an error -106 when trying to access an integer, from the prg:

#DEFINE ERROR_NONSTR_DATA -106 && data type for value is not a data string

It looks like the code gets pretty far [well, far enough to tell me its not a string :) ] but doesn't include logic for decoding anything but character strings.
--
David Mann
Software Developer

"I don't believe in 'isms', I just believe in me" -- Ferris Bueller
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform