FIX: ON KEY LABEL Resets Parameter in FoxPro 2.0

ID: Q88877

2.00 MS-DOS kbprg kbfixlist kbbuglist

The information in this article applies to:

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

Last Reviewed: September 22, 1997