FIX: "Feature not available" in ON ERROR Handling

Last reviewed: October 20, 1997
Article ID: Q130457
2.50a 2.50b 2.60 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5a, 2.5b, and 2.6

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 kbprg
Version : 2.50a 2.50b 2.60
Platform : WINDOWS
Solution Type : kbfix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.