1. In this way shall to close an edb.
- Posted by Kondor Attila <euflev at dpg.hu> Feb 07, 2005
- 415 views
I use a lot of edb in pgm, and I did select sometimes this, sometimes that. When I tryd this routin -- to close before copying fret=db_select(edb1_path) if fret=DB_OK then db_close() end if fret=db_select(edb2_path) if fret=DB_OK then db_close() end if --copying fret=copyFile(edb1_path, edb2_path, 0) if fret =0 then --False messing("Error at copying") else uzen("ok") end if -- I get always error message. --------------------------------- --When I did to close so: -- to close before copying fret=0 while fret=0 do fret=db_select(edb1_path) if fret=DB_OK then db_close() end if end while fret=0 while fret=0 do fret=db_select(edb2_path) if fret=DB_OK then db_close() end if end while --copying fret=copyFile(edb1_path, edb2_path, 0) if fret =0 then --False messing("Error at copying") else uzen("ok") end if -- I get ok message. I do'nt understand why do not enough one db_close(). Attila Kondor