in your About document there is now no need to keep modifying this information
separately each time you have replaced the design of your db with a template.
This method only requires modification to a field name in the master form in
the database before you replace the design.
Decide on the version/revision format you want to stick with. e.g. version +
Revision letter is 3 characters (21A represents ver 2.1 revision A)
Simply create a field on your master form called 'ver__[version]' such as
'ver__20A. (I use double underscore here)
Each time you increase the version of the database design, you need to change
the name of the field.
Now create a button on your About document with the following Script and
accompanying "Version Information" label
Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim view As NotesView
Dim Msrtform As NotesForm
Set db = session.CurrentDatabase
'Get hold of you master form
Set Mstrform = db.GetForm("Master Form")
'Get hold of all the fields into an array and cycle through them until you find
the version field
MstrFields = Mstrform.Fields
Forall field In MstrFields
If Instr(field,"ver__")
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
versionInfo = Right(field,3) 'Get all the version info into one
var
Exit Forall
End If
End Forall
'Prepare what you want in you version messagebox by disecting the version
information
DispTitle = db.title
DispVersionA= Left(versionInfo,1)
DispVersionB= Mid(versionInfo,2,1)
DispVersion = DispVersionA+"."+DispVersionB
DispRevision=Right(versionInfo,1)
'Display it
Messagebox DispTitle+Chr(10)+Chr(10)+" Version: "+DispVersion+_
" Revision:
"+DispRevision+Chr(10)+"________________________________________________________
_"+Chr(10)+_
Chr(10)+"Developed by Dept Global Technology"+Chr(10)+Chr(10)+"?2000
Company Name Here. All rights reserved.",, "About"
End Sub
This was first published in November 2000