Hmmm, we have drifted way off topic ..... nothing to do with opening DSR ...
Quote:Are you hard coding the revision number and date (in step 1)?
YES
Quote:If so, you would manually change it each time you did a revision, is that correct?
YES
Quote:Is there a way to have it done automatically, say with the filename plus system date and time?
YES ... Do you want "spoiler" details, or want to work it out yourself?
Spoiler follows:
Spoiler details:
Add a CheckBox element to a common form, like a Main Menu form. Element name = blnUpdateVersion.
Add the following code to the programming for the form in the On Exit section:
If blnUpdateVersion = TRUE Then {
blnUpdateVersion = FALSE
GlobalValue("gsVersion","Reconciled to " + @filename + "-" + @ToString(@date) + "-" + @ToString(@time))
}
Update the Global Variable when you are ready to do a Reconcile.
Just put a checkmark in the UpdateVersion box.
When you exit the form the programs checks to see if it should update the Global Variable. It clears the checkbox so that the program will not update automatically the next time the form closes, forcing you to make a concious decision to put the checkmark in the box.
It then updates the Global Variable gsVersion and you close your design windows and save/reconcile as you see fit.
You may want to parse the date/time strings to your liking. Caution: sample code above is untested, just ran to the keyboard by itself.