MOD2000: After You Delete a Category, Underlying Functions Still Exist in Code Librarian (236515)



The information in this article applies to:

  • Microsoft Office 2000 Developer

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.

MORE INFORMATION

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.

Modification Type:MajorLast Reviewed:12/6/2000
Keywords:kbbug KB236515