Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem opening a csv file
Message
From
03/08/2001 11:29:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/08/2001 10:24:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00539374
Message ID:
00539415
Views:
22
>Hello,
>
>I have a comma separated file with single quote delimiters that I am trying to open in Excel 2000 using VFP 6 automation. I can't seem to figure out the parameter or its position to tell excel that the file used the single quote delimeters. Does anyone know what position it is and what value to use?
>Here what I am doing ...
>
>lcFileName = "C:\MyFile.txt"
>loExcel = CreateObject("Excel.Application")
>loExcel.WorkBooks.Open(lcFileName, 2, 1, 1, 2, .F., .F., .F., .T.)
>loExcel.visible = .T.
>
>
>I have tried variations of parameters and values but can't get it right.
>Any help would be greatly appreciated.
>
>Thanks,
>-Isaac

Isaac,
Either use OpenText method where you can specify TextQualifier or as an easier way use CSV format. Excel opens it directly seeing extension.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform