Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting certain subkeys - how?
Message
From
13/05/2002 13:01:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Deleting certain subkeys - how?
Miscellaneous
Thread ID:
00655754
Message ID:
00655754
Views:
60
Hello All


I am trying to delete certain subkeys from given key but it seems like Deletekey API function always return me 2

Here is what I am trying to do:

dimension laopt(1)
lnRet=oreg.Enumoptions(@laopt,"Software\My keys\",HKEY_LOCAL_MACHINE,.f.)
lnCount=alen(laopt,1)
=oreg.openkey("Software\My keys\",HKEY_LOCAL_MACHINE)
lnH=oreg.nCurrentkey
FOR m.i = 1 TO lncount
lnREt=oreg.DeleteKey(lnH,laopt(i,1))
ENDFOR &&* m.i = 1 TO lncount


What is wrong with the code above? I am using registry.prg taken from UT

TIA
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Next
Reply
Map
View

Click here to load this message in the networking platform