Jump to content

Import CSV into DataBase using UniGUI-based Program


jemmyhatta

Recommended Posts

Hi,

 

I have some need to take some data from the CSV format. Is it able in UniGUI? To read /importing some CSV files to UniGUI based program? What third party components I have to have to do that? To import that CSV files into the database. Thanks.

This work has nothing to do with unigui.

A CSV is a text file. Each row contains data separated by ",".
You have to read the file (with a TStringList) line by line and split the line in the destination fields.
Then you have to save each field in the target table ...
 
PS: 
for a JvCsvDataSet  (Jedi project) --> a dataset to import csv data
So you don't need to write the parsing code ...
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...