Hi David,
This problem disappeared when I cleared the content of ControlSource (which was a memo field).
Do you have any thoughts on this.
Thank you,
Ali
>Ali,
>
>It sounds like the cursor was moved by something else. Try this:
>
>
_screen.AddObject( "edt", "editbox" )
>_screen.edt.Width = 200
>_screen.edt.Height = 200
>_screen.edt.Visible = .t.
>
>no go to the edt and type return 3 times, Canada, space, space, space, backspace, backspace, backspace
>
>the cursor should be to the right of the last a, then back to the command window:
>
>_screen.edt.SelText = "Ali"
>
>And I see
CanadaAli>
>if you position the cursor between the na
>
>_screen.edt.SelText = " where does this go? "
>
>I get this in the edt:
Can where does this go? adaAli>
>Do you have any code in the KeyPress or LostFocus or Valid that might be altering any of the Sel* properties?
>
>>I got a problem with both of the solutions. I pressed enter, then I wrote a word (let say: Canada), and then pressed spacebar (like 3 times) and then pressed Backspace to get to the word (so 3 times again) that I wrote. Now the cursor is right after the word, but if I run the following command:
>>
>>GeologyForm.descript.SelText = "Ali"
>>
>>My name would be written one or two characters behind the world(so it would be either CanaAlida or CanadAlia). It should have written right after the word( I mean CanadaAli).