Link to home
Start Free TrialLog in
Avatar of jturpin
jturpinFlag for United States of America

asked on

Copy one record

I am processing a DBF file and wish to copy selected
records to another DBF file. I do not wish to use
AppendRecord and have to spell out all the fields like:

   File2.AppendRecord(File1Field1.AsString,
       File1Field2.AsFloat, .... etc);

File2 is created in the program using File1's structure.
Therefore to make my code more robust I can not use the
AppendRecord method as shown above.

In Pascal if two files had the same record structure I
could simply assign one to the other, and append it.
ASKER CERTIFIED SOLUTION
Avatar of rcastle
rcastle

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jturpin

ASKER

I don't think the Batchmove method will work,

but the BatchMove component looks like it should.
Avatar of bamboo7431
bamboo7431

Try using Apollo database engine. (www.luxent.com)
It has a lot of cool functions like CopyToFile, Append, etc. (stuff that all dBASE programmers are used to)