Domino Code Fragment

Code Name*
Delete a default zero after a form is opened when the field is being calculated in another field
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.128.30.77
Description*
This code is used to to delete a default zero after a form is opened when the field is being calculated in another field. This code should go in the Postopen mode of the form.
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
 Sub Postopen(Source As Notesuidocument)
Dim Workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim Quantity As NotesItem
Set uidoc = workspace.CurrentDocument
If uidoc.IsNewDoc = True Then
Call uidoc.GoToField("Quantity")'change to your field name
Call uidoc.SelectAll
Call uidoc.Cut
EndIf
EndSub