Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy more than 16K records to Excel from VFP 5.0
Message
De
19/04/2014 23:20:27
 
 
À
31/03/2014 08:27:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01597567
Message ID:
01598837
Vues:
89
>>>>>>Hi All:
>>>>>>
>>>>>>Is there any workaround for VFP 5.0 for the following statement (we do not have the option to upgrade to VFP 9):
>>>>>>
>>>>>>
>>>>>>copy next 20000 to foo xls
>>>>>>
>>>>>>
>>>>>>In this case, only 16,383 records are copied. Changing the 'XLS' to 'XL5' has no effect.
>>>>>>
>>>>>>On the Excel side, we can handle more records; we're running Excel 2010.
>>>>>>
>>>>>>Thanks,
>>>>>>
>>>>>>Yossi
>>>>>
>>>>>What happens when you copy to CSV?
>>>>
>>>>TYPE CSV is not valid in 5.0. So I used DELIM. The good news is that it will copy more records, BUT when I open the delimited file in Excel 2010, I still need to change field types in the open wizard. If I leave them all as GENERAL, then 'F' translates into 'False' and '03' translates into a numeric 3. In both cases I need to change GENERAL to TEXT. Rather tedious, but that's what you get when working with old versions!
>>>>
>>>
>>>I don't have VFP 5 installed, but I'm pretty sure it supports CSV. (Is it possible you typed CVS instead? I do that a lot.)
>>>
>>>Tamar
>>
>>
>>copy next 30000 to test type csv
>>copy next 30000 to test type xls
>>
>>
>>I get an error on the first line, but not on the second.
>>In any case, what would the advantage be of CSV over DELIM? Even with CSV, you would presumably need to go through the tedious process I described above.
>
>Son-of-a-gun. I just checked my older versions of HackFox and I don't see CSV even in HackFox 6. The difference between CSV and DELIM is that CSV includes filenames and Excel can read a CSV directly.
>
>Tamar

Thanks, Tamar. I put together a kludge that copies to a DELIM file if there are more than the limit. After that, the user needs to get into Excel and run the wizard that sets up the parameters (delimiter type, column data types). What a pain.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform