I’ve seen a few “not working” posts about this, but nothing specifically speaking to what’s happening to me.
I’ve had the following script on the Entering event on several fields:
Sub Entering(Source As Field)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
Call uidoc.SelectAll
End Sub
It’s supposed to select the entire content of the field whenever the user enters it, but now it’s just not happening. Worked just fine before we converted to R6. Now it doesn’t do it at all. Any ideas? Is this a bug?
Unfortunately I can’t run it through the debugger. The script runs in a dialog box and the debugger shuts off as soon as I launch the box. So, I’m still lost!
However, you would be much better off Declaring a Global variables for ws and uidoc and instanciating them in the PostOpen event of the form. Then you code for each field would be Call uidoc.SelectAll.