this is my code i want to have a format number in sequencial numbers like this 000-000-01 up to so on.
Sub Postopen(Source As Notesuidocument)
Dim session As New NotesSession
Dim uidoc As notesuidocument
Dim w As New NotesUIWorkspace
Set uidoc = w.CurrentDocument
seqNo = session.GetEnvironmentValue("SeqNo")
If Isempty(seqNo) Then
Call session.SetEnvironmentVar("SeqNo", 1)
Else
seqNo = seqNo +1
Call session.SetEnvironmentVar _
("SeqNo", Cint(seqNo))
End If
Call uidoc.fieldsettext("epid", Cstr (session.GetEnvironmentValue("SeqNo")))
works just fine for me. However, an attempt to create sequential numbers using the environment technique is not really save (as all other attempts), and that should not go by unmentioned.
I know that the comment about searching this forum for information on sequential numbering techniques has been mentioned numerous times during this ongoing saga!