Microsoft KB Archive/236515

= MOD2000: After You Delete a Category, Underlying Functions Still Exist in Code Librarian =

Article ID: 236515

Article Last Modified on 12/6/2000

-

APPLIES TO


 * Microsoft Office 2000 Developer Edition

-



This article was previously published under Q236515





SYMPTOMS
After you delete a category in the Code Librarian, the underlying functions disappear. However, when you search the database, the functions still exist.



CAUSE
This problem occurs when a function has more than one associated category.



RESOLUTION

 * 1) On the View menu, click Options.
 * 2) On the General tab, select the following option: Delete associated code when deleting a category or keyword.
 * 3) Click OK.

After you set this option, functions will be deleted from the database when their associated categories or keywords are deleted.



Steps to Reproduce the Behavior

 * 1) Start the Visual Basic Editor.
 * 2) On the Add-ins menu, click Code Librarian.
 * 3) On the File menu, click New. Name your file MyCodeLib, and then click Open.
 * 4) Right-click the Code Library icon, and then click New to create a new category.
 * 5) In the New Categories dialog box, type the name C1, and then click Add.
 * 6) Repeat the same process to add a new category named C2.
 * 7) Click the C1 icon in the Contents pane, and then right-click the Code detail pane and click New.
 * 8) Type F1 in the Name box, and then click Apply.
 * 9) Click the Settings tab, and then click Add. In the Add Category dialog box, click the C2 icon, and click Add. Then click Close.
 * 10) Click OK to return to the main Code Librarian view.
 * 11) Click the C2 icon in the Contents pane, right-click the Code detail pane, and then click New
 * 12) Type F2 in the Name box, and then click Apply.
 * 13) Click the Settings tab, and then click Add. In the Add Category dialog box, click the C1 icon, and click Add. Then click Close.
 * 14) Click OK to return to the main Code Librarian view.
 * 15) Right-click the C1 icon, and click Delete. Click Yes to delete the category.
 * 16) Repeat the steps to delete the C2 icon.
 * 17) Click to select the Search tab, type the letter F in the search box, and then click Search.

Note that both functions are still listed in the database.

Additional query words: pra functions gone missing disappeared still there

Keywords: kbbug kbnofix KB236515

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.