Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import csv file
Message
From
14/09/2006 08:20:04
 
 
To
14/09/2006 05:32:58
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01153299
Message ID:
01153629
Views:
15
hi,
But why don't you simply save as dbf from Excel??
becuse i have fields have arabic characters(names ,addresses,city....)

with this way, convert it to rubbish data

thanks,

regards
m.qasem


>I'm sorry, but Excel XML is not usable because it has its own standard, which I did not know. But why don't you simply save as dbf from Excel?
>
>>hi,
>>thank you,
>>i save it as xml?
>>i try via import nothing as xml?
>>what the steps.
>>
>>regards.
>>m.qasem
>>>The easiest and most flexible, is to use XML.
>>>
>>>>hi,
>>>>thank you for reply help and code,
>>>>
>>>>i think i can do that as excel...,
>>>>
>>>>but via this code i need to know every field to create the cursor,
>>>>
>>>>i think it is better to save it as excel and i can make import next...
>>>>
>>>>thanks alot.
>>>>
>>>>m.qasem
>>>>>>hi all,
>>>>>>
>>>>>>any idea,help
>>>>>>i try to import file.csv as under
>>>>>>
>>>>>>*IMPORT FROM (thisform.text2.value) TYPE XLS
>>>>>>IMPORT FROM (thisform.text2.value) TYPE csv&&syntax error
>>>>>>
>>>>>>
>>>>>>thanks
>>>>>
>>>>>You can not import from a CSV file, because it does not contain information about field names. SO you must first create a cursor/table, and APPEND into it.
>>>>>
>>>>>*IMPORT FROM (thisform.text2.value) TYPE XLS
>>>>>create cursor ... && Fill in the code to create the correct structure
>>>>>lcFile=thisform.text2.value
>>>>>APPEND FROM (lcFile) CSV>
Previous
Reply
Map
View

Click here to load this message in the networking platform