Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Move Cursor to End of Text


Message #1 by "George Oro" <george@c...> on Tue, 29 Oct 2002 17:02:16 +0400
Hi Guys,

Just a quick question, is it possible after moving the focus to my field and the cursor will move automatically to the end of the
text value?

E.g.
	me.MyField.SetFocus
	Go to End of Field text value

It is like setting up the Option/Keyboard/ Go to End of Field...


Thanks in advance,
George



Message #2 by "Gregory Serrano" <SerranoG@m...> on Tue, 29 Oct 2002 18:06:16
George,

<< Just a quick question, is it possible after moving the focus to my 
field and the cursor will move automatically to the end of the
text value?

E.g.
	me.MyField.SetFocus
	Go to End of Field text value
>>

	Me.MyField.SetFocus
	Me.MyField.SelStart = CInt(Len(Me.MyField))


Note:  The Len() function returns a long, but .SelStart needs an integer, 
hence the CInt() function.

Greg
Message #3 by "George Oro" <george@c...> on Wed, 30 Oct 2002 11:05:03 +0400
Thanks Greg, I will give it I try later, got a busy with something.

Cheers,
George


-----Original Message-----
From: Gregory Serrano [mailto:SerranoG@m...]
Sent: Tuesday, October 29, 2002 6:06 PM
To: Access
Subject: [access] Re: Move Cursor to End of Text


George,

<< Just a quick question, is it possible after moving the focus to my 
field and the cursor will move automatically to the end of the
text value?

E.g.
	me.MyField.SetFocus
	Go to End of Field text value
>>

	Me.MyField.SetFocus
	Me.MyField.SelStart = CInt(Len(Me.MyField))


Note:  The Len() function returns a long, but .SelStart needs an integer, 
hence the CInt() function.

Greg


  Return to Index