LOTUSSCRIPT/COM/OLE CLASSES


Examples: GotoField method
This script checks to make sure the user entered something in the Conclusion field before allowing them to save the document. If the Conclusion field is empty, it displays a message and then uses GotoField to place the cursor in the Conclusion field.

Sub Querysave(Source As Notesuidocument, Continue As Variant)
 If ( source.FieldGetText( "Conclusion" ) = "" ) Then
   Messagebox( "Please enter a Conclusion" )
   Call source.GotoField( "Conclusion" )
   Continue = False
 End If
End Sub

See Also