FIX: Error When Attempting to Rename Class in Class Browser (143075)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0

This article was previously published under Q143075

SYMPTOMS

When attempting to rename a class in the Class Browser, you may receive the error message:
Class <classname> is not found in the class library.
Browser: classbrowser1
Object: classbrowser1
Method: renameclass
where <classname> is the name of the class that you are attempting to rename.

CAUSE

You will receive this message if all of the following conditions exist:

  • You are running Visual FoxPro 3.0.
  • You are using the Class Browser to rename a class.
  • The name of the class that you are attempting to rename contains extended ASCII characters.

WORKAROUND

  • Use the Rename Class command in the Command window to rename the class. -or-

  • Upgrade to Visual FoxPro version 3.0b.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft product listed at the beginning of this article. This problem was corrected in Microsoft Visual FoxPro 3.0b for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Open or switch to Microsoft Visual FoxPro 3.0.
  2. Type Create Class in the Command window and press ENTER. This will open the New Class dialog box.
  3. Type ALT+0244 into the Class Name text box (this will create an extended ASCII character). Base the class on a check box (default) and store it in C:\Myclass.vcx.
  4. Choose Class Browser from the Tools menu and open C:\Myclass.vcx.
  5. Highlight the class and attempt to rename it. The error will now occur.

Modification Type:MajorLast Reviewed:3/24/2000
Keywords:kbbug KB143075