ID: Q135626
3.00 WINDOWS kbprg
The information in this article applies to:
The Screen Designer in FoxPro version 2.x products has a check box in the Field dialog box under Options labeled Select Field on Entry. The check box is selected by default, and the format picture clause "@K" is generated for the field so that when the form is run and the field entered, its contents are selected. This option is no longer set by default in Visual FoxPro.
To achieve the same select-on-entry behavior in Visual FoxPro, use any one of these techniques:
-or-
THISFORM.SetAll("Format","K","Textbox") THISFORM.SetAll("SelectedBackColor",RGB(0,0,128),"Textbox")
-or-
NODEFAULT textbox::GotFocus this.sellength=LEN(<fldname>)
-or-
IF !EMPTY(this.value)
KEYBOARD "{end}"
KEYBOARD "{shift+home}"
ENDIF
Keywords : FxprgGeneral
Version : 3.00
Platform : WINDOWS
Last Reviewed: December 15, 1995