FIX: BAR() Returns Value 1 Less Than Version 1.02

ID: Q88957

2.00 MS-DOS kbprg kbfixlist kbbuglist

The information in this article applies to:

SYMPTOMS

The BAR() function returns a value 1 less than it does in FoxPro 1.02 for MS-DOS.

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.0 for MS-DOS dated November 15, 1991.

MORE INFORMATION

The following sample code demonstrates the problem:

   DEFINE POPUP test FROM 1,1 PROMPT STRUCTURE
   ON SELECTION POPUP test ? BAR(),PROMPT()
   ACTIVATE POPUP test

In version FoxPro 1.02 for MS-DOS, the BAR() function returns the value 1 for the first bar in a popup. In FoxPro 2.0, it returns the value 0. This function was changed to behave as in it does FoxPro 1.02 for MS-DOS.

Additional reference words: FoxDos buglist2.00 fixlist2.00 2.00 KBCategory: kbprg kbfixlist kbbuglist KBSubcategory: Solution Type : kbfix

Last Reviewed: September 22, 1997