Microsoft KB Archive/163474

= BUG: MessageBox with Keycomp=Windows Returns Incorrect Value =

Article ID: 163474

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q163474



SYMPTOMS
When Set Keycomp is equal to Windows in Visual FoxPro for the Macintosh, the MessageBox function returns an incorrect value. According to Visual FoxPro Help, the value returned for a "No" selection is supposed to be a 7.



RESOLUTION
There are a couple of ways you can resolve this issue. One is to hit the spacebar after moving with the arrow or tab keys to the "No" button in the MessageBox dialog box. The other alternative is to Set Keycomp to MAC. This forces the user to use the mouse to select the "No" button. Both of these options return the correct value (7) for a "No" selection.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
  Type the following commands in the command window: SET KEYCOMP to WINDOWS msg=MESSAGEBOX("Yes/No Question",36) && Yes/No dialog box buttons &&displayed as well as question mark icon  Arrow over or tab to the No button. (Note that the thick border does not appear around the No button.) Click Enter.  Type the following command in the command window: DISPLAY MEMORY LIKE msg &&Note the value of msg is equal to 6 

Keywords: kbbug KB163474

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.