Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit Box Cursor Position

Status
Not open for further replies.

sheronne

Programmer
Jun 1, 2001
71
0
0
US
I have an edit box that loads data from a table when the form loads. I would like for the user to be able to start typing from the end of the data that is loaded; however, when I load the cursor is position at the beginning of everthing in the editbox. How do I position the cursor to the end.

Thanks
 
try this
*Init even of the edit box
This.selstart = LEN(This.value)
 
It didn't work for me? I am not for sure if I am doing something wrong or not?
 
sheronne,

Have you taken a look at ramani's solution in:

Editbox Cursor Position
thread184-401209

...there maybe more threads on this subject, try Keyword Search in this forum.

Slighthaze = NULL
[sub]craig1442@mchsi.com[/sub][sup]
"Whom computers would destroy, they must first drive mad." - Anon​
[/sup]
 
HI

EditBox.GotFocusEvent
*********************
KEYBOARD "{CTRL+END}"

:)

____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top