FIX: "Feature not available" in ON ERROR Handling

ID: Q130457

2.50a 2.50b 2.60 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

You can get a "Feature not available" error message when trying to do a string assingment of 77 or more characters with an ON ERROR error handler in place.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft FoxPro version 2.6a for Windows.

MORE INFORMATION

Steps to Reproduce Problem

Create and run a program that contains this code:

   ON ERROR DO anerror WITH MESSAGE(), LINENO()
   STORE SPACE(76) to m.f1
   STORE SPACE(77) to m.f2
   ON ERROR

   FUNCTION anerror
   PARAMETERS msg, inline
   WAIT WINDOW msg + STR((inline)
   RETURN

You can also reproduce this problem by using the Catalog Manager:

1. Start the Catalog Manager.

2. Create a new screen.

3. Save the screen to a floppy disk, and remove the floppy disk.

4. Try to modify the saved screen.

5. Click the Cancel button when you get the Cannot read from Drive error.

   Now, you should get the "I/O operation failure" error, which triggers
   the ON ERROR routine. Then you should get the feature not available
   error on a call to WZALERT(), a function in CATALOG.APP.

Additional reference words: FoxWin 2.50a 2.50b 2.60 fixlist2.60a buglist2.50a buglist2.50b buglist2.60 KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: FxprgGeneral
Keywords          : FxprgGeneral kbbuglist kbfixlist
Version           : 2.50a 2.50b 2.60
Platform          : WINDOWS
Solution Type     : kbfix

Last Reviewed: October 22, 1997