home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / 7987 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.5 KB  |  36 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!gumby!wupost!csus.edu!netcom.com!aahz
  3. From: aahz@netcom.com (Mean Green Dancing Machine)
  4. Subject: Re: Paradox 4.0 and ASCII delimted files
  5. Message-ID: <1992Nov20.193019.22576@netcom.com>
  6. Organization: Don't blame me, I voted for Bill 'n' Opus
  7. References: <9973@blue.cis.pitt.edu.UUCP>
  8. Date: Fri, 20 Nov 1992 19:30:19 GMT
  9. Lines: 25
  10.  
  11. In article <9973@blue.cis.pitt.edu.UUCP> field@cs.pitt.edu (Brian Field) writes:
  12. >
  13. >I've recently started moving ASCII delimited files into Paradox 4.0.  I have
  14. >many different files that I need to get into Paradox.  Now the Import/ASCII
  15. >Delimited option works great except that the field names are "Field-1", 
  16. >"Field-2", ...etc.,  Is there a way to get Paradox to interpret the first
  17. >row in the ASCII file to be the field name?  Even better if I could specify
  18. >it's type as well.  
  19. >
  20. >Other alternatives welcome. I would prefer *not* to define the tables in
  21. >Paradox in advance, and then append, since some of the tables field
  22. >number/types may still change.
  23.  
  24. Your best bet is to create *two* ASCII-delimited files, one with the
  25. other data, and the other with the structure.  Write a PAL script to
  26. import the structure file, create the appropriate table, the Import |
  27. AppendDelimited the data file.
  28. -- 
  29.                          --- Aahz (the *other* Dan Bernstein)
  30.                              @netcom.com 
  31.  
  32. Hugs and backrubs -- I break Rule 6
  33.  
  34. Trying to be happy is like trying to build a machine for which the only
  35. specification is that it should run noiselessly.
  36.