Remove The Need To Update Version Information In Your About Documents

Remove The Need To Update Version Information In Your About Documents

Unless you prefer to keep large lists of the version and revision date details
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.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

>0 Then
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

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.