How to Disable Browse Field "Select on Entry" Behavior

ID: Q113810

The information in this article applies to:

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

Last Reviewed: June 27, 1995