Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to convert a Paradox table to a fixed length ASCII table Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
28-Aug-02
Category
Database Others
Language
Delphi All Versions
Views
96
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Tomas Rutkauskas 

How to convert a Paradox table to a fixed length ASCII table

Answer:

1   procedure TForm1.Button1Click(Sender: TObject);
2   var
3     t1, t2: TTable; {t1 = PW table; t2 = ASCII version}
4   begin
5     t1 := TTable.create(self);
6     with t1 do
7     begin
8       DataBaseName := 'pw'; { Personal Alias for Paradox Directory }
9       tableName := 'customer.db'; { Source Table }
10      open;
11    end;
12    t2 := TTable.create(self);
13    with t2 do
14    begin
15      DataBaseName := 'pw'; { Personal Alias for Paradox Directory }
16      tableName := 'asdf.txt';
17      TableType := ttASCII;
18      createTable;
19      open;
20      edit;
21      BatchMove(t1, batCopy);
22      close;
23    end;
24    t1.close;
25  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC