Solved

Copy one record

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now