1. Error With mydata.ex that ships with Euphoria
- Posted by pmosley at infoway.lib.nm.us Jun 12, 2001
- 355 views
Hi 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. David Mosley pmosley at infoway.lib.nm.us
2. Re: Error With mydata.ex that ships with Euphoria
- Posted by Robert Craig <rds at RapidEuphoria.com> Jun 12, 2001
- 346 views
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