1. In this way shall to close an edb.

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

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu