Hello!
I have a very bizarre problem when merging two DBF files from old VFP DOS program. (adding records from one file to another)
Appending records from items2.dbf in items1.dbf file, and from headers2.dbf in headers1.dbf file. The resulting files are not the same as when using a DBF utility for this purpose. The resulting files have the appropriate number of records, the appropriate number of crossed records and so on. But when I put the resulting files in the original VFP DOS program, which works summarizing certain columns and values, do not get the appropriate results.
Here's the last version of code for items file (same is used for headers):
Any ideas where he might be the problem? I experimented with different ways to add records, but always the same problem occurs.
I have a very bizarre problem when merging two DBF files from old VFP DOS program. (adding records from one file to another)
Appending records from items2.dbf in items1.dbf file, and from headers2.dbf in headers1.dbf file. The resulting files are not the same as when using a DBF utility for this purpose. The resulting files have the appropriate number of records, the appropriate number of crossed records and so on. But when I put the resulting files in the original VFP DOS program, which works summarizing certain columns and values, do not get the appropriate results.
Here's the last version of code for items file (same is used for headers):
HReadFirst(items2, hForwardOnly+hNoRefresh+hLockNo) WHILE NOT HOut(items2) HCopyRecord(items1,items2) HAdd(items1) HReadNext(items2,hLockNo) ENDItems1 and items2 have identical structure, and also headers1 and headers2.
Any ideas where he might be the problem? I experimented with different ways to add records, but always the same problem occurs.