Question : append from csv

Hi

We are using vfp7. When i use this append i get 30 empty records but my csv file has only 4 records with infromation.

Code Snippet:
1:
APPEND from c:\potash\import\import.csv fields ima_key,ima_sec,attrib1,attrib2,attrib3,attrib4,attrib5,attrib6,attrib7,attrib8,attrib9,attrib10,attrib11,attrib12,attrib13,orig_mfg,orig_mfgpn,uom,addit_info,cust_spec,port_id,port_type,itemnum type csv

Answer : append from csv

The import.CSV file from your post is not in standard CSV format. It is some data file having field names and data inside but the format is neither CSV nor DBF and I am afraid, VFP cannot read it by APPEND FROM command.

The file format seems somehow to be fixed, so you could write a small program which will read it by low level file functions and create a DBF table on output.

The file is probably exported from some other application. Is there any possibility to obtain different file format?
Random Solutions  
 
programming4us programming4us