Page Index Toggle Pages: 1 [2]  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) Can't open DSR (Read 6524 times)
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Can't open DSR
Reply #15 - Aug 13th, 2006 at 12:37am
Print Post Print Post  
Hmmm, we have drifted way off topic ..... nothing to do with opening DSR ... Roll Eyes

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:

Code
Select All
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.
« Last Edit: Aug 13th, 2006 at 2:00am by Bob_Hansen »  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: Can't open DSR
Reply #16 - Aug 15th, 2006 at 9:01pm
Print Post Print Post  
That looks very useful Bob, thanks muchly.
  

**
Captain Infinity
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send Topic Send Topic Print Print