import a CSV file w/ First row of data as field names by program not interactive way

This is a discussion on import a CSV file w/ First row of data as field names by program not interactive way within the Paradox Database forums in Other Databases category; 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 ...

Go Back   Database Forum > Other Databases > Paradox Database

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-23-2008, 10:55 AM
Default import a CSV file w/ First row of data as field names by program not interactive way

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?


Reply With Quote
  #2  
Old 07-23-2008, 11:03 AM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way

> 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
news:4887384c-at-pnews.thedbcommunity.com...
>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?
>
>



Reply With Quote
  #3  
Old 07-23-2008, 11:06 AM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way

> 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
news:4887384c-at-pnews.thedbcommunity.com...
>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?
>
>



Reply With Quote
  #4  
Old 07-23-2008, 01:38 PM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way

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
news:4887384c-at-pnews.thedbcommunity.com...
>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?
>
>



Reply With Quote
  #5  
Old 07-24-2008, 02:14 AM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way

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-at-verizon.net
Thank you.

"Tom Nelson" wrote in message
news:48875f17$1-at-pnews.thedbcommunity.com...
| 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
| news:4887384c-at-pnews.thedbcommunity.com...
| >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?
| >
| >
|
|


Reply With Quote
  #6  
Old 07-24-2008, 09:18 AM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way

> 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
news:48880f99$1-at-pnews.thedbcommunity.com...
> 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-at-verizon.net
> Thank you.
>
> "Tom Nelson" wrote in message
> news:48875f17$1-at-pnews.thedbcommunity.com...
> | 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
> | news:4887384c-at-pnews.thedbcommunity.com...
> | >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?
> | >
> | >
> |
> |
>
>



Reply With Quote
  #7  
Old 07-24-2008, 10:43 AM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way


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


Reply With Quote
  #8  
Old 07-24-2008, 12:28 PM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way

Thanks. found: setSourceFieldNamesFromFirst ( const namesFirst Logical)

Copyright 1996 - 2004. Corel Corporation. All rights reserved.
"Tony McGuire" wrote in message
news:488886ef$1-at-pnews.thedbcommunity.com...
|
| 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
|
|


Reply With Quote
  #9  
Old 07-24-2008, 12:48 PM
Default Re: import a CSV file w/ First row of data as field names by program not interactive way

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
news:488872e6$1-at-pnews.thedbcommunity.com...
| > 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
| news:48880f99$1-at-pnews.thedbcommunity.com...
| > 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-at-verizon.net
| > Thank you.
| >
| > "Tom Nelson" wrote in message
| > news:48875f17$1-at-pnews.thedbcommunity.com...
| > | 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
| > | news:4887384c-at-pnews.thedbcommunity.com...
| > | >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?
| > | >
| > | >
| > |
| > |
| >
| >
|
|


Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 11:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.