Article View: borland.public.cppbuilder.database.multi-tier
Article #1125Re: Copying *.DBF files
From: Brian Phillips
Date: Thu, 04 May 2000 00:00
Date: Thu, 04 May 2000 00:00
30 lines
1909 bytes
1909 bytes
Hi Mark;
Thanks for the help. What I mean is below.
Example:
******************************************************
1) String NewFileName;
2) NewFileName = UserEntered->Text;
3) system("copy C:\\BlankFile.dbf C:\\NewFileName.dbf");
4) system("copy C:\\BlankFile.cdx C:\\NewFileName.cdx");
5) ATable->Active = false;
6) ATable->TableName = "NewFileName.dbf";
7) ATable->Active = true;
*******************************************************
I use the 'system' command on lies 3 & 4 to invoke
the DOS command 'copy'.
With this I try to copy empty files as a way of creating
a new empty *.DBF & *.CDX files to be later populated.
There could easily be a better way of doing this that I
don't know about. Thanks for all your time.
Brian
====================================================
Mark Cashman (TeamB) wrote: Hi, Brian!
When you say "system copy" do you mean TBatchMove?
------
Mark Cashman, TeamB C++ Builder
http://www.temporaldoorway.com/programming/index.htm
C++ Builder, JBuilder programming information
Home of The C++ Builder Programmer's Webring - Join us!
------
Technical Details
Message-ID:
<3911ED1A.554F@csc.sctboces.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39075851.6092@csc.sctboces.org> <3909F488.FAAB953D@temporaldoorway.com> <390ECF29.E8EC5C02@kronos.com> <390F188D.266FB0CC@temporaldoorway.com> <39104261.34FD@csc.sctboces.org> <39107705.50FDB086@temporaldoorway.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,e196898ec15db7fc X-Google-Attributes: gidfcd2b,public From: Brian Phillips <bphillip@csc.sctboces.org> Subject: Re: Copying *.DBF files Date: 2000/05/04 Message-ID: <3911ED1A.554F@csc.sctboces.org> X-Deja-AN: 619248763 Content-Transfer-Encoding: 7bit References: <39075851.6092@csc.sctboces.org> <3909F488.FAAB953D@temporaldoorway.com> <390ECF29.E8EC5C02@kronos.com> <390F188D.266FB0CC@temporaldoorway.com> <39104261.34FD@csc.sctboces.org> <39107705.50FDB086@temporaldoorway.com> Content-Type: text/plain; charset=us-ascii X-Trace: 4 May 2000 11:29:14 -0800, 216.42.90.71 Organization: SCT BOCES MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier