Re: Error With mydata.ex that ships with Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

David Mosley writes:
> I just found an error in rob's code in mydata.ex it is in the db_save() 
> Procedure
> if you run the program and then look in the mydata.BKP 
> file you will find that there is nothing in it.All you have to do to 
> fix it is to move the line system("copy",DB_NAME ....) down to 
> the end of the procedure.This will copy the file and all the 
> new data to. I have made a program and it is on the RDS site.

I'm not sure how you think mydata.ex should work,
but it works the way it was intended to work.
db_save() makes a copy of the current data on disk,
before it overwrites that data with any changes.
That way, you always have two copies on disk, with one lagging
behind the other in case you made a mistake and want to
go back to the previous version.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu