Information générale
Titre:
VFP Registry Class IsKey Method
I’m trying to check a value in a Registry key using the VFP Registry Foundation Class which is on a form.
The value is under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Using the syntax
llKeyIs = THISFORM.registry1.IsKey(lcKeyPath,'HKEY_LOCAL_MACHINE')
If I have lcKeyPath = 'SOFTWARE\Microsoft\Windows\CurrentVersion'
I get .t. as a response but if I have lcKeyPath = 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall' I get .f. as the response even though that key is there.
Is there a string length restriction or can anybody tell me why I can’t get a .t. for the Uninstall key when I can get it for the CurrentVersion key?
TIA
Ed
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement