DOCUMENT:Q190261 11-DEC-1999 [foxpro] TITLE :BUG: Returning 1 in Check Box Valid Event Skips Next Object PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:3.0b,5.0,5.0a,6.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0b, 5.0, 5.0a, 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== Pressing the ENTER key while on a check box that returns one (1) from its Valid event, causes Visual FoxPro to skip the next object in the tab order. Pressing the Spacebar while on the same check box moves the cursor to the proper object in the tab order. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a program that contains the following code and run the program: o=CREATEOBJECT('Ztest') o.SHOW() DEFINE CLASS Ztest AS FORM WINDOWTYPE=1 ADD OBJECT chk1 AS CHECKBOX WITH TOP=5,LEFT=5,CAPTION='PPP' FUNCTION chk1.VALID() RETURN 1 ENDFUNC ADD OBJECT txt1 AS TEXTBOX WITH ; TOP=35,LEFT=5,WIDTH=50,cVar='thisform.t1' ADD OBJECT txt2 AS TEXTBOX WITH ; TOP=65,LEFT=5,WIDTH=50,cVar='thisform.t1' ENDDEFINE 2. When the form appears, press the Spacebar and note that the focus moves to the first text box. Press the TAB key twice to move back to the check box. 3. Once you are back on the check box, press the ENTER key and note that the focus goes directly to the second text box. The first text box never gets focus. Additional query words: kbVFp300bbug kbVFp500abug kbVFp600bug kbOOP kbvfp600 ====================================================================== Keywords : Technology : kbVFPsearch kbAudDeveloper kbVFP300b kbVFP500 kbVFP600 kbVFP500a Version : WINDOWS:3.0b,5.0,5.0a,6.0 Issue type : kbbug Solution Type : kbnofix ============================================================================= 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. Copyright Microsoft Corporation 1999.