The information in this article applies to:
SYMPTOMSError 5 - Invalid Procedure Call appears when the DeleteSetting is attempted. CAUSEThe SaveSetting statement and GetSetting function in Visual Basic 4.0 for Windows are used to create and retrieve information from nested levels in the Registry. However, the related DeleteSetting statement does not handle these nested settings. The GetAllSettings function also has this limitation. RESOLUTION
Use more than one DeleteSetting statement to remove sections of the nested
keys before removing the top level key, rather than attempting to remove
the top key in isolation.
Instead, use the following two lines of code to remove the Test1 key and its subkeys:
To enable all possible functionality, you can use the Registry API functions to perform any desired operation manually. For more information on the Registry API functions, please see the following article in the Microsoft Knowledge Base: Q145679 : How to Use the Registry API to Save and Retrieve Setting STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 6.0. MORE INFORMATIONSteps to Reproduce Behavior
Additional query words: kbVBp400bug kbVBp600fix kbVBA kbRegistry kbVBp kbdsd kbDSupport
Keywords : kbVBp400bug kbVBp600fix kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |