>>>>if len(allt(this.value))!=0
>> keyboard '{END}'
>> keyboard '{SHIFT+HOME}'
>> endif
>>
>>
>>Unless there is an input mask - this would be an redundant check. The highlighting would only occur to the extent there is something in the text box. If nothing is in the textbox - and no inputmask exists - no hightlight will occur - obviating the need for the If...Endif. Of course, all of this is moot if K is assigned to the Format Property.
>
>Unfortunately, it's necessary check, else this textbox will never get focus if value=space(0).
Ed,
Couldn't it be just :
keyboard "{Ctrl+A}"
Once upon a time I had a stituation selecting by keyboard or "K" didn't work. Don't remember the project now but the solution :
keyboard "0"+"{Enter}"
return iif(this.value<1,0,.t.)
A quirk way but still working (otherwise they would call even at 03:00 am)
Cetin