Problem with dbdelete() and pack
Problem with dbdelete() and pack
I use DBFCDX RDD
the command dbdelete() and pack
don't work correctly
Regards Maurizio
the command dbdelete() and pack
don't work correctly
Regards Maurizio
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Re: Problem with dbdelete() and pack
MaurizioMaurizio wrote:I use DBFCDX RDD
the command dbdelete() and pack
don't work correctly
Regards Maurizio
Do you have
SET DELETE ON
Richard
PACK and ZAP in real pocket pc
We have same problem, only in real pocket pc.
In PC with harbour or xharbour work ok. Also in emulator is ok.
PACK and ZAP not delete records, only mark it except the first record that recall delete.
We do not use index.
And we use SET DELETED ON
If PACK is not used all records mark deleted correctly.
*
USE FALLIN
GO TOP
DO WHILE .not. Eof()
DELETE
SKIP 1
ENDDO
PACK
CLOSE
USE FALLIN
GO TOP
IF .not. Eof()
MsgInfo("Hay Datos","Atencion")
ENDIF
CLOSE
Regards
In PC with harbour or xharbour work ok. Also in emulator is ok.
PACK and ZAP not delete records, only mark it except the first record that recall delete.
We do not use index.
And we use SET DELETED ON
If PACK is not used all records mark deleted correctly.
*
USE FALLIN
GO TOP
DO WHILE .not. Eof()
DELETE
SKIP 1
ENDDO
PACK
CLOSE
USE FALLIN
GO TOP
IF .not. Eof()
MsgInfo("Hay Datos","Atencion")
ENDIF
CLOSE
Regards
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
It is not the path but probably the header of the dbf for the first record.andreab wrote:I think that problem is dbf path.
I have oher problems' with this...
but not with emulator....
Use path for open dbf...
My two cents
regard's
andrea bruni
Antonio, i tried the test.prg that you have in samples dir and tried to open the dbf file (after program execution) on my laptop pc. My dbf editor (cdbfw) did not want to open it mentionning dbf header is not correct. Once corrected, it shows that 2nd and third are deleted.
Richard
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Forgot to say, execution did occur on pocket pc and file was copied to laptop afterwardsRichard Chidiak wrote:It is not the path but probably the header of the dbf for the first record.andreab wrote:I think that problem is dbf path.
I have oher problems' with this...
but not with emulator....
Use path for open dbf...
My two cents
regard's
andrea bruni
Antonio, i tried the test.prg that you have in samples dir and tried to open the dbf file (after program execution) on my laptop pc. My dbf editor (cdbfw) did not want to open it mentionning dbf header is not correct. Once corrected, it shows that 2nd and third are deleted.
Richard
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Richard,
I have tested it on the emulator and works ok. Then I modified the DBF path (SD card) and tested it again on the real pocket pc and the problem then happens.
I guess we need to create a zapDbf() function that does what I described on a previous msg. Also we could try COPY TO ... FOR ... command too.
I have tested it on the emulator and works ok. Then I modified the DBF path (SD card) and tested it again on the real pocket pc and the problem then happens.
I guess we need to create a zapDbf() function that does what I described on a previous msg. Also we could try COPY TO ... FOR ... command too.
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
AntonioAntonio Linares wrote:Richard,
I have tested it on the emulator and works ok. Then I modified the DBF path (SD card) and tested it again on the real pocket pc and the problem then happens.
I guess we need to create a zapDbf() function that does what I described on a previous msg. Also we could try COPY TO ... FOR ... command too.
I tried COPY TO on pocket pc
Only one record (the first one) is copied ??? none should be there
Again the header of the original file where we delete is corrupted.
Richard
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Have you checked if that record is marked as deleted ?Richard Chidiak wrote:Only one record (the first one) is copied ??? none should be there
How do you know this ? Do you get an error when you try to open it ? What tool are you using to open it ? Thanks.Richard Chidiak wrote:Again the header of the original file where we delete is corrupted.
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Antonio,Antonio Linares wrote:Have you checked if that record is marked as deleted ?Richard Chidiak wrote:Only one record (the first one) is copied ??? none should be there
How do you know this ? Do you get an error when you try to open it ? What tool are you using to open it ? Thanks.Richard Chidiak wrote:Again the header of the original file where we delete is corrupted.
The only record left (first one) is "not" quoted as DELETED
After execution on my pocket pc, i remove the sd card and put it on a sd card reader connected to my computer, then i can open the file on my laptop.
I use cdbfw for browsing any dbf, this product is just magic, and cdbfw informs me that the header is corrupted.
Richard
Re: Problem with dbdelete() and pack
Hello,
What is the status on ZAP and PACK.
Is ZAP and PACK working now?
Thanks in advance
Otto
What is the status on ZAP and PACK.
Is ZAP and PACK working now?
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Problem with dbdelete() and pack
Otto,
As we are using a recent Harbour build with FWPPC, those RDD functions should be working fine.
As we are using a recent Harbour build with FWPPC, those RDD functions should be working fine.