Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2010, 01:27 AM
jjerry jjerry is offline
Junior Member
 
Join Date: Feb 2010
Posts: 3
Default copy dbf to csv file

i need to copy ( export ) an existing dbf file to csv using copyfiletext.
Reply With Quote
  #2  
Old 02-26-2010, 02:41 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default

What is copyfiletext?
__________________
MrBaseball34

Hook 'em Horns
2005 College Football National Champions
2005 College Baseball National Champions
Reply With Quote
  #3  
Old 02-26-2010, 03:18 AM
jjerry jjerry is offline
Junior Member
 
Join Date: Feb 2010
Posts: 3
Default

it has to do with apollo and exporting to other files formats.
Reply With Quote
  #4  
Old 02-26-2010, 03:33 AM
David B David B is offline
Senior Member
 
Join Date: Jun 2009
Posts: 319
Default

CSV files are only comma deliminated text files.
All you do is create a text file, save it with a CSV extension.
Create the first row of field names.
Then loop through your dataset, writing the records to the CSV seperated by a comma.

Why do you need to use a special component?

Last edited by David B; 02-26-2010 at 03:37 AM. Reason: More info
Reply With Quote
  #5  
Old 02-27-2010, 03:29 AM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default

What version of Delphi are you using? There are some generic Dataset to CSV export controls here, some are even free:
http://www.torry.net/pages.php?id=555

This looks like a good one since it supprots so many Delphi versions: TmxExports v.2.38
__________________
MrBaseball34

Hook 'em Horns
2005 College Football National Champions
2005 College Baseball National Champions
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:26 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, vBulletin Solutions, Inc.