LOTUSSCRIPT/COM/OLE CLASSES
Sub Onfocus(Source As Field) Dim ws As New NotesUIWorkspace Dim uidoc As NotesUIDocument Set uidoc = ws.CurrentDocument If uidoc.FieldGetText("Subject") = "" Then Call uidoc.FieldSetText("Subject", "New subject") End If End Sub
See Also