Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

import a CSV file w/ First row of data as field names by p..

 
   Database Help (Home) -> Paradox RSS
Next:  Urgent Requirement for Oracle DBA's Location :- N..  
Author Message
Carl

External


Since: Jul 23, 2008
Posts: 4



(Msg. 1) Posted: Wed Jul 23, 2008 6:55 am
Post subject: import a CSV file w/ First row of data as field names by program not interactive way
Archived from groups: comp>databases>paradox (more info?)

I need to import a CSV comma delimited file which has First row of data as
field names by program not interactive way.

Pdox Win (v. 11) INTERACTIVE import has the check mark box for First row of
data as field names.

Unfortunately ObjectPAL importASCIIVar or appendASCIIVar does not have this
optional parameter for this. Is there any work around?

Actually I need to integrate to existing pdox dos (v 4.0) program. Pdox Dos
cannot import directly data such as First row of data as field names. I have
to launch Pdox Win or other software from Dos program to import CSV data.
Does anyone know such conversion software which masks interactive import?

 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Steven Green

External


Since: Jan 10, 2008
Posts: 49



(Msg. 2) Posted: Wed Jul 23, 2008 10:03 am
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> Pdox Dos cannot import directly data such as First row of data as field
> names.

of course it can.. open the file in the mini-editor and delete the first
line.. then import the file..

--
Steven Green - Myrtle Beach, South Carolina USA

Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales

Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards
"Carl" wrote in message

>I need to import a CSV comma delimited file which has First row of data as
> field names by program not interactive way.
>
> Pdox Win (v. 11) INTERACTIVE import has the check mark box for First row
> of
> data as field names.
>
> Unfortunately ObjectPAL importASCIIVar or appendASCIIVar does not have
> this
> optional parameter for this. Is there any work around?
>
> Actually I need to integrate to existing pdox dos (v 4.0) program. Pdox
> Dos
> cannot import directly data such as First row of data as field names. I
> have
> to launch Pdox Win or other software from Dos program to import CSV data.
> Does anyone know such conversion software which masks interactive import?
>
>

 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Steven Green

External


Since: Jan 10, 2008
Posts: 49



(Msg. 3) Posted: Wed Jul 23, 2008 10:06 am
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> Pdox Dos cannot import directly data such as First row of data as field
> names.

or, if your pdoxdos issue is the field names.. import the file, and pass the
first record to an array, then delete the first record.. then use the
restruct screen to change the field names..

in other words, you can do anything you want, directly within pdoxdos.. all
you need, is to know how.. (g)

--
Steven Green - Myrtle Beach, South Carolina USA

Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales

Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards
"Carl" wrote in message

>I need to import a CSV comma delimited file which has First row of data as
> field names by program not interactive way.
>
> Pdox Win (v. 11) INTERACTIVE import has the check mark box for First row
> of
> data as field names.
>
> Unfortunately ObjectPAL importASCIIVar or appendASCIIVar does not have
> this
> optional parameter for this. Is there any work around?
>
> Actually I need to integrate to existing pdox dos (v 4.0) program. Pdox
> Dos
> cannot import directly data such as First row of data as field names. I
> have
> to launch Pdox Win or other software from Dos program to import CSV data.
> Does anyone know such conversion software which masks interactive import?
>
>
 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Tom Nelson

External


Since: Jul 23, 2008
Posts: 1



(Msg. 4) Posted: Wed Jul 23, 2008 12:38 pm
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Carl,

I have a small script which works in Paradox 5/10 windows which allows you
to import comma or other delimited records. The fields in the result table
are ASCII. It used to be on the thedbcommunity.com as a download, but I
can't seem to get there. It allows you to use the first record, if
desired, as field names.

Steve may have answered your needs. If there are many files with ASCII
fields, the script can eliminate the need for editing. I can email the
script to you if it will be helpful.

Tom Nelson

"Carl" wrote in message

>I need to import a CSV comma delimited file which has First row of data as
> field names by program not interactive way.
>
> Pdox Win (v. 11) INTERACTIVE import has the check mark box for First row
> of
> data as field names.
>
> Unfortunately ObjectPAL importASCIIVar or appendASCIIVar does not have
> this
> optional parameter for this. Is there any work around?
>
> Actually I need to integrate to existing pdox dos (v 4.0) program. Pdox
> Dos
> cannot import directly data such as First row of data as field names. I
> have
> to launch Pdox Win or other software from Dos program to import CSV data.
> Does anyone know such conversion software which masks interactive import?
>
>
 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Carl

External


Since: Jul 23, 2008
Posts: 4



(Msg. 5) Posted: Wed Jul 23, 2008 10:14 pm
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

There are going to be a bunch of files a few times a week throughout years
not one time shot to communicate data among companies. So it should be
automated not interactive at all.
Could you send the script to carlogawa RemoveThis @verizon.net
Thank you.

"Tom Nelson" wrote in message

| Carl,
|
| I have a small script which works in Paradox 5/10 windows which allows you
| to import comma or other delimited records. The fields in the result
table
| are ASCII. It used to be on the thedbcommunity.com as a download, but I
| can't seem to get there. It allows you to use the first record, if
| desired, as field names.
|
| Steve may have answered your needs. If there are many files with ASCII
| fields, the script can eliminate the need for editing. I can email the
| script to you if it will be helpful.
|
| Tom Nelson
|
| "Carl" wrote in message
|
| >I need to import a CSV comma delimited file which has First row of data
as
| > field names by program not interactive way.
| >
| > Pdox Win (v. 11) INTERACTIVE import has the check mark box for First row
| > of
| > data as field names.
| >
| > Unfortunately ObjectPAL importASCIIVar or appendASCIIVar does not have
| > this
| > optional parameter for this. Is there any work around?
| >
| > Actually I need to integrate to existing pdox dos (v 4.0) program. Pdox
| > Dos
| > cannot import directly data such as First row of data as field names. I
| > have
| > to launch Pdox Win or other software from Dos program to import CSV
data.
| > Does anyone know such conversion software which masks interactive
import?
| >
| >
|
|
 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Tony McGuire2

External


Since: Feb 25, 2004
Posts: 48



(Msg. 6) Posted: Thu Jul 24, 2008 7:43 am
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Using Paradox for Windows (v9), check out the datatransfer() method,
amd its functions & parameters.

One parameter is exactly what you are asking for, and a native
methodology within Paradox for doing what you want.



setSourceFieldNamesFromFirst method

Sets field names using the data in the first row of input.

Syntax

setSourceFieldNamesFromFirst ( const namesFirst Logical)

Description

setSourceFieldNamesFromFirst sets field names using the first row of
the input data. Setting namesFirst to True always skips the first row.
However, the field names only apply to newly created tables that do
not already have field names. setSourceFieldNamesFromFirst only
applies when the source is a spreadsheet or a delimited text file.



------------------------------
Tony McGuire
 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Steven Green

External


Since: Jan 10, 2008
Posts: 49



(Msg. 7) Posted: Thu Jul 24, 2008 8:18 am
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> So it should be automated not interactive at all.

the suggestions that I made were for an automated process, too.. you just
need to determine from which end the automation is best served..

--
Steven Green - Myrtle Beach, South Carolina USA

Diamond Software Group
http://www.diamondsg.com/main.htm
Paradox Support & Sales

Diamond Sports Gems
http://www.diamondsg.com/gemsmain.htm
Sports Memorabilia and Trading Cards
"Carl" wrote in message

> There are going to be a bunch of files a few times a week throughout years
> not one time shot to communicate data among companies. So it should be
> automated not interactive at all.
> Could you send the script to carlogawa.DeleteThis@verizon.net
> Thank you.
>
> "Tom Nelson" wrote in message
>
> | Carl,
> |
> | I have a small script which works in Paradox 5/10 windows which allows
> you
> | to import comma or other delimited records. The fields in the result
> table
> | are ASCII. It used to be on the thedbcommunity.com as a download, but I
> | can't seem to get there. It allows you to use the first record, if
> | desired, as field names.
> |
> | Steve may have answered your needs. If there are many files with ASCII
> | fields, the script can eliminate the need for editing. I can email the
> | script to you if it will be helpful.
> |
> | Tom Nelson
> |
> | "Carl" wrote in message
> |
> | >I need to import a CSV comma delimited file which has First row of data
> as
> | > field names by program not interactive way.
> | >
> | > Pdox Win (v. 11) INTERACTIVE import has the check mark box for First
> row
> | > of
> | > data as field names.
> | >
> | > Unfortunately ObjectPAL importASCIIVar or appendASCIIVar does not have
> | > this
> | > optional parameter for this. Is there any work around?
> | >
> | > Actually I need to integrate to existing pdox dos (v 4.0) program.
> Pdox
> | > Dos
> | > cannot import directly data such as First row of data as field names.
> I
> | > have
> | > to launch Pdox Win or other software from Dos program to import CSV
> data.
> | > Does anyone know such conversion software which masks interactive
> import?
> | >
> | >
> |
> |
>
>
 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Carl

External


Since: Jul 23, 2008
Posts: 4



(Msg. 8) Posted: Thu Jul 24, 2008 8:28 am
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks. found: setSourceFieldNamesFromFirst ( const namesFirst Logical)

Copyright 1996 - 2004. Corel Corporation. All rights reserved.
"Tony McGuire" wrote in message

|
| Using Paradox for Windows (v9), check out the datatransfer() method,
| amd its functions & parameters.
|
| One parameter is exactly what you are asking for, and a native
| methodology within Paradox for doing what you want.
|
|
|
| setSourceFieldNamesFromFirst method
|
| Sets field names using the data in the first row of input.
|
| Syntax
|
| setSourceFieldNamesFromFirst ( const namesFirst Logical)
|
| Description
|
| setSourceFieldNamesFromFirst sets field names using the first row of
| the input data. Setting namesFirst to True always skips the first row.
| However, the field names only apply to newly created tables that do
| not already have field names. setSourceFieldNamesFromFirst only
| applies when the source is a spreadsheet or a delimited text file.
|
|
|
| ------------------------------
| Tony McGuire
|
|
 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Carl

External


Since: Jul 23, 2008
Posts: 4



(Msg. 9) Posted: Thu Jul 24, 2008 8:48 am
Post subject: Re: import a CSV file w/ First row of data as field names by program not interactive way [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks! I figured out how to do by dos based on your suggestion. They till
use my old pdox program since 1991. Great pdoxdox rarely use anymore though.

"Steven Green" wrote in message

| > So it should be automated not interactive at all.
|
| the suggestions that I made were for an automated process, too.. you just
| need to determine from which end the automation is best served..
|
| --
| Steven Green - Myrtle Beach, South Carolina USA
|
| Diamond Software Group
| http://www.diamondsg.com/main.htm
| Paradox Support & Sales
|
| Diamond Sports Gems
| http://www.diamondsg.com/gemsmain.htm
| Sports Memorabilia and Trading Cards
| "Carl" wrote in message
|
| > There are going to be a bunch of files a few times a week throughout
years
| > not one time shot to communicate data among companies. So it should be
| > automated not interactive at all.
| > Could you send the script to carlogawa RemoveThis @verizon.net
| > Thank you.
| >
| > "Tom Nelson" wrote in message
| >
| > | Carl,
| > |
| > | I have a small script which works in Paradox 5/10 windows which allows
| > you
| > | to import comma or other delimited records. The fields in the result
| > table
| > | are ASCII. It used to be on the thedbcommunity.com as a download, but
I
| > | can't seem to get there. It allows you to use the first record, if
| > | desired, as field names.
| > |
| > | Steve may have answered your needs. If there are many files with
ASCII
| > | fields, the script can eliminate the need for editing. I can email
the
| > | script to you if it will be helpful.
| > |
| > | Tom Nelson
| > |
| > | "Carl" wrote in message
| > |
| > | >I need to import a CSV comma delimited file which has First row of
data
| > as
| > | > field names by program not interactive way.
| > | >
| > | > Pdox Win (v. 11) INTERACTIVE import has the check mark box for First
| > row
| > | > of
| > | > data as field names.
| > | >
| > | > Unfortunately ObjectPAL importASCIIVar or appendASCIIVar does not
have
| > | > this
| > | > optional parameter for this. Is there any work around?
| > | >
| > | > Actually I need to integrate to existing pdox dos (v 4.0) program.
| > Pdox
| > | > Dos
| > | > cannot import directly data such as First row of data as field
names.
| > I
| > | > have
| > | > to launch Pdox Win or other software from Dos program to import CSV
| > data.
| > | > Does anyone know such conversion software which masks interactive
| > import?
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 >> Stay informed about: import a CSV file w/ First row of data as field names by p.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Pdox DOS import problem - I've got a txt file with fields delimited by commas. One field contains product descriptions, and many have words enclosed in quotation marks. When using Tools, Import, Ascii, Delimited, Pdox has problems with records containing those quotation..

Calculated Field In Report - I use Paradox 7. I have a calculated field in a report as follows: [INCENTVE.City] + ", " + [INCENTVE.State] + " " + [INCENTVE.Zip] Obviously the data is drawn from the CITY STATE ZIP fields in my database. However, if the fields...

renaming a file - After I export a db file to a text file, I tried to rename it as a unique file. Since this process is going to happen every month, I would like to place the renaming process in a script. The script works until I try to rename it. The following is in..

Reading a paradox file - Hi all, I have a paradox file and I need to convert it into a word document. Is it possible ? If so can anyone tell me how to do it ?The paradox file itself is 4.5 MB.

Calling CHM Help File From a Form - How do I do this? I have no problem calling a .HLP file using the following: method keyPhysical(var eventInfo KeyEvent) var theKey String endvar if eventInfo.isPreFilter() then ;// This code executes for each object on the form theKe...
   Database Help (Home) -> Paradox All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]