>Hi Nadya.
>
>>> Instead of nodefault it should be dodefault(). In this case it works. <<
>
>No, it should be NODEFAULT. The Textbox::GotFocus() runs the native VFP base class behavior. Then, after you set the SelStart and SelLength, you issue the NODEFAULT because the native VFP GotFocus behavior resets these properties.
>
>Marcia
Have you tried it with nodefault? I tried and it didn't work. It didn't select and the focus didn't appear. When I changed nodefault to dodefault(), it worked just fine.
If it's not broken, fix it until it is.
My Blog