Link to home
Start Free TrialLog in
Avatar of dominoPgr
dominoPgr

asked on

How to move cursor to the end of a field (not begining)?

Here is a piece of my lotus script code when a button is pressed:
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument

uidoc.EditMode = True
Call uidoc.GoToField( "fieldName")

Open in new window

It puts the cursor in the field that will be edited. The problem is that the cursor goes to the begining of the field. When the field is quite long, it takes time to scroll down to the end of the field when some one is trying to add some text to the field. Is there a way to change the code and make the cursor go to the end of the fiield?
ASKER CERTIFIED SOLUTION
Avatar of mbonaci
mbonaci
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sjef Bosman
If that doesn't work, or you don't want to rely on the visibility of other fields, try this one:
http://benpoole.com/articles/sendkeys

Call uidoc.GoToField( "fieldName")
PushKeys("{^End}")

I might have the syntax wrong, so please check.
Avatar of dominoPgr
dominoPgr

ASKER

Using formula command EditLeft worked. Thank you!