How to Disable Browse Field "Select on Entry" Behavior

Last reviewed: June 27, 1995
Article ID: Q113810
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.5, 2.5a, 2.5b, and 2.6

By default, the contents of a field in a Windows-based application are automatically selected upon entry into the field.

To disable this feature only during a BROWSE, issue SET KEYCOMP TO DOS in the WHEN clause of the BROWSE statement. To allow "select on entry" behavior for individual fields while in this mode, use an @K picture clause where desired in a FIELDS clause list.

Example

This example assumes that a database has been selected and opened and that SET("KEYCOMP")="WINDOWS" is true:

   * NO_SLECT.PRG
   BROWSE WHEN doson()
   SET KEYCOMP TO WINDOWS

   PROCEDURE doson
   SET KEYCOMP TO DOS


Additional reference words: FoxWin 2.50 2.50a 2.50b 2.60 highlight replace
erase
overwrite delete
KBCategory: kbprg
KBSubcategory: FxprgBrowse


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.