Solved

Copy one record

Posted on 1997-07-29
3
180 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
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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 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