DBF to CSV - converter 3.1 ( Update )

User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: DBF to CSV - converter 3.1 ( Update )

Post by ukoenig »

Marc,

the CSV-files You are using for the moment
do they include complete field-infos or only data.
If only data where do You get the field-type infos and sizes from.

regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

Re: DBF to CSV - converter 3.1 ( Update )

Post by Marc Venken »

ukoenig wrote:Marc,

the CSV-files You are using for the moment
do they include complete field-infos or only data.
If only data where do You get the field-type infos and sizes from.

regards
Uwe :?:
Uwe,

My csv files that I receive always include a first line with headers :

Code,Naam,Prijs,Maatplus,Minafn,Verpak,Stock
11103250,splitleder amerikaantje gestr.palmverst.,Prijs op aanvraag,,12,120,V
11105100,rundsplit geel gev. gestr.kap,Prijs op aanvraag,,12,120,V
11105400,splitl. handschoen 7cm ecru kap cat 2,Prijs op aanvraag,,12,120,V
11105800,splitlederen hs rood rode kap CAT.II,Prijs op aanvraag,,12,120,V
11106200,splitl. handsch. met palmversterk CAT.II,Prijs op aanvraag,,12,60,V
11106500,splitl. hs. groene pistoolverst. CAT.II,Prijs op aanvraag,,12,60,V
11107000,splitlederen hs groene kap A-kwal.Cat.2,Prijs op aanvraag,,12,120,V
11107011,splitlederen handschoen CE cat 2. mt XXL,Prijs op aanvraag,,12,120,V
11108000,splitlederen handsch. A-kwal. CE 2. geel,Prijs op aanvraag,,12,60,V
11112000,splitlederen handschoen A-kwal.+ nerfver,Prijs op aanvraag,,12,60,V
11116500,varkenslederen hs ongev Bald Eagle.M-XXL,Prijs op aanvraag,,12,72,V
11118100,varkensnerflederen hs geel gevoerd Cat.2,Prijs op aanvraag,,12,120,V
11118150,varkensnerfl.hs geel gev.gestreept Cat.2,Prijs op aanvraag,,12,120,V
11122010,boxlederen hs 10cm canvas ecru kap Cat 2,Prijs op aanvraag,,12,120,V
11124000,boxlederen hs 10 cm gerubb. kap Cat.2,Prijs op aanvraag,,12,120,V

and the program I posted generates a dbf with this line as fields and sizes.
In my case, I convert them all to Char fields for import into Prestashop, so the program is limited to this type of field.
It can not be used for general purposes.

For other csv files, I read them into exel and save them. Then the FW functions can convert to dbf.

Marc
Marc Venken
Using: FWH 20.08 with Harbour
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: DBF to CSV - converter 3.1 ( Update )

Post by ukoenig »

Marc,

I finished the first section ( many new functions are included ) like You can see
It is possible now to add some extra fields to the destination DBF before creating a CSV
I would like to add the possibility to change fieldnames and sizes as well

I think
1. adding the new field
2. importing data from the old field to the new one
3. deleting the old field

the 2. part CSV to DBF is nearly finished :D

Image

Image


regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
Marc Venken
Posts: 727
Joined: Tue Jun 14, 2016 7:51 am

Re: DBF to CSV - converter 3.1 ( Update )

Post by Marc Venken »

ukoenig wrote:Marc,

I finished the first section ( many new functions are included ) like You can see
It is possible now to add some extra fields to the destination DBF before creating a CSV
I would like to add the possibility to change fieldnames and sizes as well

I think
1. adding the new field
2. importing data from the old field to the new one
3. deleting the old field

the 2. part CSV to DBF is nearly finished :D

Image

Image


regards
Uwe :D
Hey Uwe,

I'm going to take some time to progress in using CSV or XLS files into DBF for further use.

Can you state the last version or if the program is finished ?

Thank
Marc Venken
Using: FWH 20.08 with Harbour
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: DBF to CSV - converter 3.1 ( Update )

Post by ukoenig »

Hello Marc,

the last release I stopped was 6.1
for the moment I don't remember the point I changed to another project.
I still remember that I tested to convert in both directions.

Image

The problem was to find a solution, converting from CSV to DBF using a CSV-file
with unknown types and fieldsizes.

FIRST-C-20-0;LAST-C-20-0;STREET-C-30-0;CITY-C-30-0;STATE-C-2-0;ZIP-C-10-0
Homer;Simpson;32179 Maiden Lane;Springfield;IL;20503-8202


FIRST;LAST;STREET;CITY;STATE;ZIP;HIREDATE;MARRIED
Homer;Simpson;32179 Maiden Lane;Springfield;IL;20503-8202;18.09.92;TRUE


a imported CSV-file with missing types and fieldsizes ( needed to create the DBF ).

Image

best regards
Uwe :roll:
Last edited by ukoenig on Tue Dec 22, 2020 11:17 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: DBF to CSV - converter 3.1 ( Update )

Post by Silvio.Falconi »

Uwe, where is th elast version because I tried with a Big Csv and not run ok
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply