Solved

Import .txt to Pdox

Posted on 1997-04-25
2
209 Views
Last Modified: 2010-04-04
I'm trying to import an ascii text file to a Pdox table.  I've set up a schema file for the .txt file and am using batchmove to populate the Pdox table.  Each line of my .txt file is around 160 characters (so several fields in the schema file have an offset value greater than 99) however the schema file seems to accept a max offset value of only 99.  After the procedure executes, my Pdox table only has values for the fields that had an offset of 99 or less.  I know there are other ways to accomplish this like parsing the line, but I want to use batchmove.  Is there any way to get the procedure to recognize offsets greater than 99?  By the way I am using Builder C++ but is should be the same in Delphi.
0
Comment
Question by:msmith042597
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Expert Comment

by:msnell
ID: 1335729
You could try using DBCvt (find it on the Delpi Super Site,
sunsite.icm.edu.pl), but I think it is for Delphi 2.0 only at
this stage
0
 

Accepted Solution

by:
Robert Gilland earned 100 total points
ID: 1335730
I have written a "C" program that does exactly
above except it imports into a DBase Table
It is available on the net at
http://www.ecn.net.au/~rgilland/burns.html

as a file named "Report.zip" It can even accept multiline data
for each record.


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

697 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