Hi Peter,
Semantics is not the correct word here, as I see it. The thing is, Sergey showed you the CORRECT way to do the job, KEYBOARD should only be considered as a last resort.
By the way, my guess is that your solution would actually have worked, if you added the PLAIN keyword.
>Hi Sergey,
>
>Semantics, semantics... :-)
>
>I may be wrong here, though I can't quite see why, but I believe I'm not being unreasonable in expecting the KEYBOARD command to do
exactly the same as pressing the key or mouse, no more - no less.
>
>It clearly does not do that.
>
>When VFP does not behave as expected, but there is another way to achieve the goal, I'm inclined to call it a workaround.
>
>If I had RMFM I wouldn't have had to ask the question in the first place, but that's another issue.
>
>As always - Thank's for your help.
>
>
>
>>Hi Peter,
>>
>>
>Great workaround, thank you.>>
>>Why would you call it a workaround?
>>
>>
>It's still a bug, though, right?>>
>>Maybe, I dunno.
>>
>>
>>>>Try
>>>>This.SelStart = LEN(This.Value)
>>>>This.SelLength = 0
>>>>
>>