🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #104657

Re: Import z pliku csv do recordseta - VB6

#104657
From: Jarosław Kozik - HOME
Date: Sat, 05 Jun 2010 19:53
32 lines
2061 bytes
Odszukałem jeszcze soś takiego:

To create a SCHEMA.INI file for a text file quickly and easily, let the ODBC 
setup and drivers do it for you. Go to the Control Panel and start ODBC. 
Click on the Add button and select the Text driver. Click on the Options 
button and describe how to arrange the text file. If your text file has a 
header record, click on the Guess button, and the ColumnNames will be filled 
out for you. On the last screen, choose Cancel to avoid setting up the data 
source. Check the directory where the text file resides, and you'll find a 
new SCHEMA.INI file.

Zrobiłem zgodnie z opisem procedure powyżej oczywiście twoja również dodałem 
do pliku i w obu przypadkach otrzymuje następujący błąd:

Separator pól specyfikacji pliku tekstowego odpowiada separatorowi 
dziesiętnemu lub ogranicznikowi tekstu.

---------------------------------------------------
Zminiałem w pliku przecinki na średniki i nic, czy wiesz może o co chodzi ?

JK



> [file.csv]
> ColNameHeader=True
> Format=CSVDelimited
>
>
> -- 
> Przemek
> 
Technical Details
Message-ID: <hue9vq$ost$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail
References: <hue5g4$cba$1@news.onet.pl> <hue6tb$g1b$1@news.onet.pl> <hue7s3$iua$1@news.onet.pl> <hue93u$mcv$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail
From: Jarosław Kozik - HOME <jkozik@op.pl>
Newsgroups: pl.comp.lang.vbasic
Subject: Re: Import z pliku csv do recordseta - VB6
Date: Sat, 5 Jun 2010 21:53:36 +0200
Organization: http://onet.pl
Lines: 34
Message-ID: <hue9vq$ost$1@news.onet.pl>
References: <hue5g4$cba$1@news.onet.pl> <hue6tb$g1b$1@news.onet.pl> <hue7s3$iua$1@news.onet.pl> <hue93u$mcv$1@news.onet.pl>
NNTP-Posting-Host: 89.187.233.73.ip.abpl.pl
X-Trace: news.onet.pl 1275767610 25501 89.187.233.73 (5 Jun 2010 19:53:30 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Sat, 5 Jun 2010 19:53:30 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931
X-RFC2646: Format=Flowed; Response
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit