Solved

Copy one record

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
System restore point 4 91
code issue 8 97
Help on project with Soap 10 47
LAN or WAN ? 11 81
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…
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…

948 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

20 Experts available now in Live!

Get 1:1 Help Now