SelectAll

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?

Subject: SelectAll

There is certainly nothing wrong with your code - it works perfectly on my earliest 6 client (Rel 6.0.1) and also on 6.5.1.

Have you run it with the debugger on just to make sure it is running ?

Subject: RE: SelectAll

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!

Subject: It works for me…

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.