FIX: ON KEY LABEL Resets Parameter in FoxPro 2.0

Last reviewed: September 22, 1997
Article ID: Q88877
2.00 MS-DOS kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for MS-DOS, version 2.0

SYMPTOMS

The command ON KEY LABEL resets the value returned by the function PARAMETERS() to 0. For example:

   =myfunct(1,2,3)
   ? PARAMETERS()   && Returns 3.

   ON KEY LABEL enter KEYBOARD CHR(23) && Ctrl+W
   BROWSE  && Press the Enter key while in the BROWSE window.

   ? PARAMETERS()   && Returns 0, the number of parameters
                    && passed to the ON KEY LABEL routine.

   ON KEY LABEL enter

   FUNCTION myfunct
   PARAMETERS a,b,c

STATUS

Microsoft has confirmed this to be a problem in Microsoft FoxPro version 2.0 for MS-DOS. This problem was corrected in Microsoft FoxPro version 2.5 for MS-DOS and in Microsoft FoxPro 2.5 for Windows.


Additional reference words: FoxDos buglist2.00 fixlist2.50 2.00
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory:
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: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.