Solved

Copy one record

Posted on 1997-07-29
3
181 Views
Last Modified: 2010-04-04
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.
0
Comment
Question by:jturpin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
rcastle earned 50 total points
ID: 1340122
Try using BatchMove.  It appears to do what you want.

Randy
0
 
LVL 1

Author Comment

by:jturpin
ID: 1340123
I don't think the Batchmove method will work,

but the BatchMove component looks like it should.
0
 
LVL 4

Expert Comment

by:bamboo7431
ID: 1340124
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)

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question