Create a custom class, and on the LostFocus event save the position, and on GotFocus restore it.
You can use SelStart + a keyboard right/left arrow to position it.
Maybe??
>Hi Rick,
>Thanks for answer
>
>Yes, it does, but the problem is when I invoke a another form or for example browse from the grid by right-clicking in the edit box, so I go back to editbox in the grid
>
>After returning to the grid, the cursor has position 1 in editbox
>
>in the case when editbox is on the form - works correctly, but when editbox is inside a grid - then no
>
>>Hi,
>>
>>One simple case:
>>
>>I have a grid and edibox inside grid. I find myself on the editbox, for example on the 25 position inside the editbox.
>
>>I've right click from editbox and for example I've invite the browse or, for example, another form
>
>>How to return to position 25 after returning from the browse (or another form) to editbox in grid ?
>>Please example
>>
>>I've tried with selstart, but it's not working
>>
>>Thanks
>
>I tested this code:
>
_screen.AddObject("abc", "editbox")
>_screen.abc.Visible = .t.
>Here I manually clicked on the editbox and pressed spacebar 25 times. I then ran this by typing in all lines, selecting it, right-click, "Execute selection". It reported 25.
>
_screen.abc.SetFocus
>KEYBOARD '{SHIFT+LEFTARROW}'
>? _screen.abc.selStart